]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24306cf29e81e6a09ea792bcb1acd5b197fdaffe
tree9f3921385c40752e97622ca08f2a32f7d8bc4014
parent46abdf7cc3dc43fbd848fbed9d9a427adff38f9b
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