[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131123140158.47ce529d@endymion.delvare>
Date: Sat, 23 Nov 2013 14:01:58 +0100
From: Jean Delvare <khali@...ux-fr.org>
To: Guenter Roeck <linux@...ck-us.net>
Cc: netdev@...r.kernel.org, Nithin Nayak Sujir <nsujir@...adcom.com>,
e1000-devel@...ts.sourceforge.net,
Don Skidmore <donald.c.skidmore@...el.com>,
Bruce Allan <bruce.w.allan@...el.com>,
Jesse Brandeburg <jesse.brandeburg@...el.com>,
lm-sensors@...sensors.org, Greg Rose <gregory.v.rose@...el.com>,
Jeff Kirsher <jeffrey.t.kirsher@...el.com>,
Michael Chan <mchan@...adcom.com>,
Carolyn Wyborny <carolyn.wyborny@...el.com>,
"David S. Miller" <davem@...emloft.net>
Subject: Re: [lm-sensors] [PATCH 5/5] ixgbe: Start temperature sensor
attribute index with 1
On Fri, 22 Nov 2013 22:08:01 -0800, Guenter Roeck wrote:
> Per hwmon ABI, temperature sensor attribute index starts with 1, not 0.
>
> Signed-off-by: Guenter Roeck <linux@...ck-us.net>
> ---
> drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
> index 3081974..e74ae36 100644
> --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
> +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c
> @@ -118,22 +118,22 @@ static int ixgbe_add_hwmon_attr(struct ixgbe_adapter *adapter,
> case IXGBE_HWMON_TYPE_LOC:
> ixgbe_attr->dev_attr.show = ixgbe_hwmon_show_location;
> snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name),
> - "temp%u_label", offset);
> + "temp%u_label", offset + 1);
> break;
> case IXGBE_HWMON_TYPE_TEMP:
> ixgbe_attr->dev_attr.show = ixgbe_hwmon_show_temp;
> snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name),
> - "temp%u_input", offset);
> + "temp%u_input", offset + 1);
> break;
> case IXGBE_HWMON_TYPE_CAUTION:
> ixgbe_attr->dev_attr.show = ixgbe_hwmon_show_cautionthresh;
> snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name),
> - "temp%u_max", offset);
> + "temp%u_max", offset + 1);
> break;
> case IXGBE_HWMON_TYPE_MAX:
> ixgbe_attr->dev_attr.show = ixgbe_hwmon_show_maxopthresh;
> snprintf(ixgbe_attr->name, sizeof(ixgbe_attr->name),
> - "temp%u_crit", offset);
> + "temp%u_crit", offset + 1);
> break;
> default:
> rc = -EPERM;
Reviewed-by: Jean Delvare <khali@...ux-fr.org>
--
Jean Delvare
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists