hwmon: (ina3221) Fix INA3221_CONFIG_MODE macros
authorNicolin Chen <nicoleotsuka@gmail.com>
Sat, 29 Sep 2018 21:44:06 +0000 (14:44 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 11 Oct 2018 03:37:13 +0000 (20:37 -0700)
commit791ebc9d34e9d212fc03742c31654b017d385926
tree954031cdcd9434642420ba696fbdade9b8a43f73
parentc20217b30d675bb8ce3f55768c3cff629641a868
hwmon: (ina3221) Fix INA3221_CONFIG_MODE macros

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>
drivers/hwmon/ina3221.c