]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elants_i2c - use managed devm_device_add_group
authorAndi Shyti <andi@etezian.org>
Fri, 29 Sep 2017 23:37:33 +0000 (16:37 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 29 Sep 2017 23:51:02 +0000 (16:51 -0700)
commitb23d93ac3af71bf1e0fdfb8461fbdcc82e414e0d
tree9d08d468d86fa3b17c07763293408f2de2fad5a7
parent987cbab035cf65d95ee3a8de47875443b6202152
Input: elants_i2c - use managed devm_device_add_group

Commit 3eff42b82d32 ("driver core: add devm_device_add_group() and
friends") has added the managed version for creating sysfs group files.

Use devm_device_add_group instead of sysfs_create_group and remove the
action that cleans the sysfs file when exiting the driver.

Signed-off-by: Andi Shyti <andi@etezian.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c