linux/drivers/net/ethernet/intel/igb
Guenter Roeck e3670b8195 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>
2013-12-10 01:27:35 -08:00
..
e1000_82575.c igb: Add new feature Media Auto Sense for 82580 devices only 2013-12-10 01:27:35 -08:00
e1000_82575.h intel: Remove extern from function prototypes 2013-09-24 12:51:37 -07:00
e1000_defines.h igb: Add new feature Media Auto Sense for 82580 devices only 2013-12-10 01:27:35 -08:00
e1000_hw.h igb: Add new feature Media Auto Sense for 82580 devices only 2013-12-10 01:27:35 -08:00
e1000_i210.c igb: Refactor NVM read functions to accommodate devices with no flash 2013-08-22 02:26:00 -07:00
e1000_i210.h intel: Remove extern from function prototypes 2013-09-24 12:51:37 -07:00
e1000_mac.c igb: Read flow control for i350 from correct EEPROM section 2013-09-12 16:24:55 -04:00
e1000_mac.h intel: Remove extern from function prototypes 2013-09-24 12:51:37 -07:00
e1000_mbx.c igb: Fix code comments and whitespace 2013-04-18 16:40:25 -07:00
e1000_mbx.h igb: Fix code comments and whitespace 2013-04-18 16:40:25 -07:00
e1000_nvm.c igb: Fix get_fw_version function for all parts 2013-08-22 02:26:09 -07:00
e1000_nvm.h igb: Fix get_fw_version function for all parts 2013-08-22 02:26:09 -07:00
e1000_phy.c igb: Fix master/slave mode for all m88 i354 PHY's 2013-10-24 05:41:20 -07:00
e1000_phy.h igb: Support for SFP modules discovery 2013-05-21 02:37:36 -07:00
e1000_regs.h igb: Add support for i354 devices 2013-04-18 16:40:35 -07:00
igb_ethtool.c igb: Add new feature Media Auto Sense for 82580 devices only 2013-12-10 01:27:35 -08:00
igb_hwmon.c igb: Convert to use devm_hwmon_device_register_with_groups 2013-12-10 01:27:35 -08:00
igb_main.c igb: Add new feature Media Auto Sense for 82580 devices only 2013-12-10 01:27:35 -08:00
igb_ptp.c igb: Read register for latch_on without return value 2013-08-22 02:25:25 -07:00
igb.h igb: Convert to use devm_hwmon_device_register_with_groups 2013-12-10 01:27:35 -08:00
Makefile igb: Copyright string update to year 2013 2013-01-19 05:05:05 -08:00