hwmon: vexpress: Use devm helper for hwmon device registration
authorPawel Moll <pawel.moll@arm.com>
Thu, 12 Jun 2014 14:14:33 +0000 (15:14 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 12 Jun 2014 15:36:50 +0000 (08:36 -0700)
commit78cebd0889c7b8b92f43e7667efc16636b858c34
treeae6678e21252841a29edfebd011297d19edc3fe0
parent8dea1b4e7726faf19b66d70f9f3737e85ef04a36
hwmon: vexpress: Use devm helper for hwmon device registration

Use devm_hwmon_device_register_with_groups instead of
the old-style manual attributes and hwmon device registration.

Also, unroll the attribute group macros for better code
readability.

Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/vexpress.c