diff --git a/ina260.c b/ina260.c index 030d424..96e2b3c 100755 --- a/ina260.c +++ b/ina260.c @@ -17,10 +17,10 @@ #define INA260_REG_ALERTLIMIT 0x07 #define INA260_REG_MANUFACTURER 0xFE #define INA260_REG_DIE 0xFF - #undef current static struct regmap_config ina260_regmap_config = { + .max_register = 0xFF, .reg_bits = 8, .val_bits = 16, };