]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cros_ec_keyb - drop unnecessary call to dev_set_drvdata and other changes
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 18:37:49 +0000 (10:37 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:33:00 +0000 (11:33 -0800)
commit9a3e1afa28c6a69eee1a515055aba93555758312
treef9c17f6d3c71958c5082c89aadd2fe0a44b023bc
parent36fe518f6db545f7f99460425a1d0160d188a533
Input: cros_ec_keyb - drop unnecessary call to dev_set_drvdata and other changes

There is no call to platform_get_drvdata() or dev_get_drvdata().
Drop the unnecessary call to dev_set_drvdata().
Other relevant changes:
  Use existing variable 'dev' instead of dereferencing it several times

This conversion was done automatically with coccinelle using the
following semantic patches. The semantic patches and the scripts
used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches

- Drop dev_set_drvdata()
- Use local variable 'struct device *dev' consistently

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/cros_ec_keyb.c