]> Pileus Git - ~andy/linux/commit
hwmon: (max16065) Convert to use devm_hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Mon, 2 Sep 2013 18:31:28 +0000 (11:31 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Oct 2013 23:16:29 +0000 (16:16 -0700)
commit38c75dc36dd368d10c4d0030665ec58565e4259b
treee2314857c44dc91b881ebedba852fd20c5dcce53
parent8d3735522fb192738d7161865d41688f10983613
hwmon: (max16065) Convert to use devm_hwmon_device_register_with_groups

Modify code to use is_visible to determine if an attribute should be created
or not, then use devm_hwmon_device_register_with_groups to create the hwmon
device and all attributes in one operation.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/max16065.c