Re: [PATCH 06/12] Input: elants_i2c - use managed devm_device_add_group

2017-09-29 Thread Dmitry Torokhov
On Sat, Sep 30, 2017 at 05:38:33AM +0900, Andi Shyti wrote: > Commit 57b8ff070f98 ("driver core: add devm_device_add_group() > and friends") has added the the managed version for creating > sysfs group files. > > Use devm_device_add_group instead of sysfs_create_group and > remove the action that

[PATCH 06/12] Input: elants_i2c - use managed devm_device_add_group

2017-09-29 Thread Andi Shyti
Commit 57b8ff070f98 ("driver core: add devm_device_add_group() and friends") has added the 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 Shyt