From: Kim, Milo Date: Fri, 31 Aug 2012 09:23:12 +0000 (+0000) Subject: lp8727_charger: Fix buggy code of NULL pdata X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~5^2~24 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=318cb389d020e3107979d7d794ab992e4bcd6665;p=pandora-kernel.git 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 Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed