mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
power: bq27xxx_battery: Platform initialization must declare a device
When initialized as a platform device the initializer must now specify a device. An empty device name is no longer valid. Signed-off-by: Andrew F. Davis <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
081bab217d
commit
424cfde49a
3 changed files with 12 additions and 4 deletions
|
|
@ -42,6 +42,7 @@ static int w1_bq27000_read(struct device *dev, unsigned int reg)
|
|||
static struct bq27xxx_platform_data bq27000_battery_info = {
|
||||
.read = w1_bq27000_read,
|
||||
.name = "bq27000-battery",
|
||||
.chip = BQ27000,
|
||||
};
|
||||
|
||||
static int w1_bq27000_add_slave(struct w1_slave *sl)
|
||||
|
|
|
|||
Loading…
Reference in a new issue