mlxsw: core: Fix temperature sensor index during initialization
authorJiri Pirko <jiri@mellanox.com>
Fri, 11 Dec 2015 17:26:00 +0000 (18:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Dec 2015 05:45:37 +0000 (00:45 -0500)
commitb626f2cb75cfc9ab707fce6e60df0d94650a4abf
tree0625ead6658b4654fcf09c1b8c4c78ed7578f5fc
parentacf35a4ec6f75bcb1c20c7aa02586de6220d76c5
mlxsw: core: Fix temperature sensor index during initialization

Sensor index should be passed instead of 0. For now, this does not make
a difference, since there is so far only one temperature sensor
exposed by HW.

Fixes: 89309da39 ("mlxsw: core: Implement temperature hwmon interface")
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c