[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1385421397.2270.14.camel@jtkirshe-mobl>
Date: Mon, 25 Nov 2013 15:16:37 -0800
From: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
To: Guenter Roeck <linux@...ck-us.net>
Cc: netdev@...r.kernel.org, "David S. Miller" <davem@...emloft.net>,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
Bruce Allan <bruce.w.allan@...el.com>,
Carolyn Wyborny <carolyn.wyborny@...el.com>,
Don Skidmore <donald.c.skidmore@...el.com>,
Greg Rose <gregory.v.rose@...el.com>,
Nithin Nayak Sujir <nsujir@...adcom.com>,
Michael Chan <mchan@...adcom.com>,
e1000-devel@...ts.sourceforge.net, lm-sensors@...sensors.org
Subject: Re: [PATCH 2/5] igb: Convert to use
devm_hwmon_device_register_with_groups
On Fri, 2013-11-22 at 22:07 -0800, Guenter Roeck wrote:
> 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@...ck-us.net>
> ---
> drivers/net/ethernet/intel/igb/igb.h | 8 ++-
> drivers/net/ethernet/intel/igb/igb_hwmon.c | 100
> +++++++++++++---------------
> 2 files changed, 53 insertions(+), 55 deletions(-)
I have added this to my queue, thanks!
Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)
Powered by blists - more mailing lists