diff options
author | Kim, Milo <Milo.Kim@ti.com> | 2012-08-31 09:23:12 (GMT) |
---|---|---|
committer | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-09-21 00:56:49 (GMT) |
commit | 318cb389d020e3107979d7d794ab992e4bcd6665 (patch) | |
tree | a1d4c51931e22d78abcf5a7b0217e6b5a73c589d /drivers/power/max17040_battery.c | |
parent | fb9adc5190d7605506ebc0e05351baa57365cc90 (diff) | |
download | linux-318cb389d020e3107979d7d794ab992e4bcd6665.tar.xz |
lp8727_charger: Fix buggy code of NULL pdata
LP8727 platform data is optional, so the driver should work even the
platform data is NULL.
To check the platform data, charging parameter data should be changed to
the pointer type.
Fix NULL point access problem when getting the battery properties. When
the data is NULL, just return as invalid value.
Signed-off-by: Milo(Woogyom) Kim <milo.kim@ti.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'drivers/power/max17040_battery.c')
0 files changed, 0 insertions, 0 deletions