]> Pileus Git - ~andy/linux/commit
hwmon: (ina2xx) Convert to use devm_hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Mon, 2 Sep 2013 20:16:19 +0000 (13:16 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 13 Oct 2013 23:16:29 +0000 (16:16 -0700)
commit468bf0e395363c12a41f508cc202b8d33f201807
treee620a402f686edc07e4539048469e615d4490484
parent38c75dc36dd368d10c4d0030665ec58565e4259b
hwmon: (ina2xx) Convert to use devm_hwmon_device_register_with_groups

Also introduce dev variable in probe function to simplify access
to client->dev, and use new macro ATTRIBUTE_GROUPS to declare
attribute groups.

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