tg3: Convert to use hwmon_device_register_with_groups
authorGuenter Roeck <linux@roeck-us.net>
Sat, 23 Nov 2013 06:07:57 +0000 (22:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Nov 2013 23:22:02 +0000 (18:22 -0500)
commita2f4dfba9e736ebe339d560cb92678280b1eb5db
tree9f3921385c40752e97622ca08f2a32f7d8bc4014
parentfe9d04afe9bee0ec37a9724937443b2c0e39ce4b
tg3: Convert to use hwmon_device_register_with_groups

Use new hwmon API to simplify code, provide missing mandatory 'name'
sysfs attribute, and attach hwmon attributes to hwmon device instead
of pci device.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Jean Delvare <khali@linux-fr.org>
Acked-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c