projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f4998c
)
power: bq27xxx_battery: fix platform probe
author
Sebastian Reichel
<sre@kernel.org>
Fri, 16 Oct 2015 13:44:10 +0000
(15:44 +0200)
committer
Sebastian Reichel
<sre@kernel.org>
Mon, 19 Oct 2015 08:37:25 +0000
(10:37 +0200)
Add missing initialization of register mapping table to
platform probe function.
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Acked-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Andrew F. Davis <afd@ti.com>
drivers/power/bq27xxx_battery.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/bq27xxx_battery.c
b/drivers/power/bq27xxx_battery.c
index 994c78d9f42675b47c7883e9314d3a465f9496b9..69e6b371a51c7f331524450c7e9b89eba238f0c9 100644
(file)
--- a/
drivers/power/bq27xxx_battery.c
+++ b/
drivers/power/bq27xxx_battery.c
@@
-1292,6
+1292,7
@@
static int bq27xxx_battery_platform_probe(struct platform_device *pdev)
di->dev = &pdev->dev;
di->chip = pdata->chip;
+ di->regs = bq27xxx_regs[di->chip];
name = pdata->name ?: dev_name(&pdev->dev);
di->bus.read = &bq27xxx_battery_platform_read;