Input: ad7879 - use more devm interfaces
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 17 Feb 2017 17:29:40 +0000 (09:29 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 23 Feb 2017 17:21:26 +0000 (09:21 -0800)
commit069b2e2cd7ef5b42e1ab8ee991347f9dbf9f51d1
tree67ffe20af7c170dc584934c7a7c853a9f3fc6b2b
parent404a24c35db8c44dce91010023f12b73f2f44441
Input: ad7879 - use more devm interfaces

gpiochip_add now has a managed version, and we can remove sysfs attribute
group via devm_add_action_or_reset (at least until we have devm version of
sysfs_create_group). This allows us to get rid of ad7879_remove().

Reviewed-by: Michael Hennerich <michael.hennerich@analog.com>
Tested-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ad7879-i2c.c
drivers/input/touchscreen/ad7879-spi.c
drivers/input/touchscreen/ad7879.c
drivers/input/touchscreen/ad7879.h