power: bq27xxx_battery: Restore device name

Patch <703df6c097> ("power: bq27xxx_battery: Reorganize I2C
into a module") has removed the device name numbering from
bq27xxx_battery_i2c_probe. Fix that by restoring the code.

Fixes: 703df6c097
Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com>
Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Tested-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
Ivaylo Dimitrov 2016-02-02 14:47:37 +02:00 committed by Sebastian Reichel
parent e35a49b163
commit 9aafabc7fe
2 changed files with 35 additions and 3 deletions

View file

@ -49,6 +49,7 @@ struct bq27xxx_reg_cache {
struct bq27xxx_device_info {
struct device *dev;
int id;
enum bq27xxx_chip chip;
const char *name;
struct bq27xxx_access_methods bus;