]> git.baikalelectronics.ru Git - kernel.git/commit
Input: tps65218-pwrbutton - drop unnecessary call to platform_set_drvdata
authorGuenter Roeck <linux@roeck-us.net>
Wed, 18 Jan 2017 19:42:44 +0000 (11:42 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 18 Jan 2017 19:49:17 +0000 (11:49 -0800)
commit8432ddc3c53b8f9fdb8582468af7c97c56163131
treee912a937f956af3c9e545ea7ea6b23cfb15f24ab
parentac8edb8ec6a63e1440f4a268ab89edd2a2cdc2ec
Input: tps65218-pwrbutton - drop unnecessary call to platform_set_drvdata

There is no call to platform_get_drvdata() or dev_get_drvdata().
Drop the unnecessary call to platform_set_drvdata().

Also use existing variable 'dev' instead of dereferencing it several times.

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