aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-11-26 02:15:23 -0500
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2013-12-10 04:27:35 -0500
commite3670b81954ab1247341a08514aa4df09f0b495e (patch)
tree1173cb2ec884b3d23acb50003a6affe9769669ca /sound
parent56cec249167b44ee2ba7a3cbf4431bee937e08e3 (diff)
igb: Convert to use devm_hwmon_device_register_with_groups
Simplify the code. Attach hwmon sysfs attributes to hwmon device instead of pci device. Avoid race conditions caused by attributes being created after registration and provide mandatory 'name' attribute by using new hwmon API. Other cleanup: Instead of allocating memory for hwmon attributes, move attributes and all other hwmon related data into struct hwmon_buff and allocate the entire structure using devm_kzalloc. Check return value from calls to igb_add_hwmon_attr() one by one instead of logically combining them all together. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Aaron Brown <aaron.f.brown@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions