android_kernel_oneplus_msm8998/drivers/net/ethernet/intel
Guenter Roeck 03b77d8180 ixgbe: 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 hwmon device registration. Implicitly
(through hwmon API) add mandatory 'name' sysfs attribute.

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: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2013-12-17 22:43:05 -08:00
..
e1000 e1000: fix possible reset_task running after adapter down 2013-11-30 00:02:12 -08:00
e1000e Merge branch 'siocghwtstamp' of git://git.kernel.org/pub/scm/linux/kernel/git/bwh/sfc-next 2013-12-05 19:45:14 -05:00
i40e i40e: make functions static and remove dead code 2013-12-17 22:42:49 -08:00
igb igb: Start temperature sensor attribute index with 1 2013-12-10 01:27:35 -08:00
igbvf Merge branch 'for-linus-dma-masks' of git://git.linaro.org/people/rmk/linux-arm 2013-11-14 07:55:21 +09:00
ixgb Merge branch 'for-linus-dma-masks' of git://git.linaro.org/people/rmk/linux-arm 2013-11-14 07:55:21 +09:00
ixgbe ixgbe: Convert to use devm_hwmon_device_register_with_groups 2013-12-17 22:43:05 -08:00
ixgbevf ixgbevf: add DCB configuration into queue setup 2013-12-17 22:42:54 -08:00
e100.c net: e100: remove unnecessary pci_set_drvdata() 2013-10-21 17:21:01 -04:00
Kconfig ixgbevf: update Kconfig description 2013-12-10 01:27:33 -08:00
Makefile i40e: include i40e in kernel proper 2013-09-11 02:28:40 -07:00