]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (tmp421) Convert to use devm_hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Sun, 6 Apr 2014 04:22:46 +0000 (21:22 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Apr 2014 15:56:58 +0000 (08:56 -0700)
commitf4d9e1ffd060ef17806fc00ded109b401cdb8938
treefdb4ca7185077e46043d61929634b1fcfd4aae12
parent8bc67b4a4f89c6b92e160914307c1926bb9fd1b6
hwmon: (tmp421) Convert to use devm_hwmon_device_register_with_groups

Use devm_hwmon_device_register_with_groups API to attach attributes
to hwmon device, simplify code, and reduce code size.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tmp421.c