hwmon: (ina3221) Fix INA3221_CONFIG_MODE macros
authorNicolin Chen <nicoleotsuka@gmail.com>
Sat, 29 Sep 2018 21:44:06 +0000 (14:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:23:31 +0000 (08:23 +0100)
commit31f3c76efc6273c55a59363ad3a37d2b0a5a0b80
treefcdd1413d6d6e19352f818a1464e295d87282f44
parentfdb7d2fc03eac8b19435bc28b020160351903cf6
hwmon: (ina3221) Fix INA3221_CONFIG_MODE macros

[ Upstream commit 791ebc9d34e9d212fc03742c31654b017d385926 ]

The three INA3221_CONFIG_MODE macros are not correctly defined here.
The MODE3-1 bits are located at BIT 2-0 according to the datasheet.

So this patch just fixes them by shifting all of them with a correct
offset. However, this isn't a crital bug fix as the driver does not
use any of them at this point.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hwmon/ina3221.c