]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cros_ec_keyb - cleanup use of dev
authorDouglas Anderson <dianders@chromium.org>
Mon, 25 Jul 2016 20:47:52 +0000 (13:47 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 26 Jul 2016 19:09:54 +0000 (12:09 -0700)
commitd064e79001f594096b3128ccb35c9007d6e5c42a
tree1b4acf1a5352a68669231ffcdb16a383e689f814
parentc12012344c654e7f5d246fd50cd913af4b5bd9a6
Input: cros_ec_keyb - cleanup use of dev

In cros_ec_keyb we stored "dev" in "struct cros_ec_keyb", but this was
the EC's dev pointer and not the keyboard's.  Let's clean this up to
make it the keyboard's dev pointer.  This could be useful in future
patches but also has the nice effect of changing a few printouts to
include the name of the keyboard device instead of the EC device, so we
will see:

[    1.224648] cros-ec-keyb ff110000.spi:ec@0:keyboard-controller: valid_keys[00] = 0x14

instead of:

[    1.224505] cros-ec-spi spi0.0: valid_keys[00] = 0x14

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/cros_ec_keyb.c