Input: ads7846 - convert to hwmon_device_register_with_groups()
authorGuenter Roeck <linux@roeck-us.net>
Thu, 28 Nov 2013 04:08:33 +0000 (20:08 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 16 Dec 2013 10:13:26 +0000 (02:13 -0800)
commite585c40ba19b155150f17124a308ac06e26d424a
tree86c1b1a5b7eea5ce864c21058d3471aa49afb08b
parent961794a00eab03f4344b7d5e825e8e789e55da87
Input: ads7846 - convert to hwmon_device_register_with_groups()

Simplify the code and create mandatory 'name' attribute by using
new hwmon API.

Also use is_visible to determine visible attributes instead of creating
several different attribute groups.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ads7846.c