OSDN Git Service

Input: ad7879 - use managed devm_device_add_group
authorAndi Shyti <andi@etezian.org>
Fri, 29 Sep 2017 23:47:53 +0000 (16:47 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 29 Sep 2017 23:51:07 +0000 (16:51 -0700)
commita8b4aa0c0d36a497ce5c7c8b9c34acb44f603547
tree1aa68ea00d37ad4feb868ef0d117149fff937aa4
parente3adf559a33bb0291c5ba7c2d0c02ae438da5c19
Input: ad7879 - use managed devm_device_add_group

Commit 57b8ff070f98 ("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/ad7879.c