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)
commit8ace98df9ade746de229dd75c144a25ec9fe2613
treee912a937f956af3c9e545ea7ea6b23cfb15f24ab
parentaa45590ae8581e25b909f2fed591c3499cd8e352
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