power: supply: bq27xxx_battery: Fix register map for BQ27510 and BQ27520
authorAndrew F. Davis <afd@ti.com>
Fri, 4 Nov 2016 18:33:13 +0000 (13:33 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:07 +0000 (20:18 +0100)
commitcb50d45c3d42633830ca60b34bf46c14941cdde4
treef8c65e2a563db9c98d18652c3e39f4baf613b61a
parentdf386a0c2804c0a2282dd95d5530e3aa75f7cd3f
power: supply: bq27xxx_battery: Fix register map for BQ27510 and BQ27520

commit 3bee9ea1de687925d116670f036599cbed8b66b0 upstream.

The BQ27510 and BQ27520 use a slightly different register map than the
BQ27500, add a new type enum and add these gauges to it.

Fixes: d74534c27775 ("power: bq27xxx_battery: Add support for additional bq27xxx family devices")
Based-on-patch-by: Kenneth R. Crudup <kenny@panix.com>
Signed-off-by: Andrew F. Davis <afd@ti.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/power/supply/bq27xxx_battery.c
drivers/power/supply/bq27xxx_battery_i2c.c
include/linux/power/bq27xxx_battery.h