hwmon: (mlxreg-fan) Fix macros for tacho fault reading
authorVadim Pasternak <vadimp@mellanox.com>
Fri, 16 Nov 2018 13:47:11 +0000 (13:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Dec 2018 08:24:32 +0000 (09:24 +0100)
commit0d4ff09997f32ea375b3e1bc512cd1c48c421756
treeeaeaefbf13946f67df30d9730891ccd17e7b7dac
parent842aeeac335eaad26f8d3e9313b5254088026d2b
hwmon: (mlxreg-fan) Fix macros for tacho fault reading

[ Upstream commit 243cfe3fb8978c7eec24511aba7dac98819ed896 ]

Fix macros for tacometer fault reading.
This fix is relevant for three Mellanox systems MQMB7, MSN37, MSN34,
which are about to be released to the customers.
At the moment, none of them is at customers sites.

Fixes: 65afb4c8e7e4 ("hwmon: (mlxreg-fan) Add support for Mellanox FAN driver")
Signed-off-by: Vadim Pasternak <vadimp@mellanox.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/mlxreg-fan.c