]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd4a29ca22207ab40af12b4c4c9f249a15fc46cc1
tree0625ead6658b4654fcf09c1b8c4c78ed7578f5fc
parent15af7646a740f3a5ccf1ff6f95d3c8d1016f29bd
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: b6775d323 ("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