]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - drivers/power/ab8500_bmdata.c
ab8500_bm: Always send platform specific battery information via pdata
authorLee Jones <lee.jones@linaro.org>
Thu, 29 Nov 2012 15:08:41 +0000 (15:08 +0000)
committerLee Jones <lee.jones@linaro.org>
Tue, 11 Dec 2012 08:43:54 +0000 (08:43 +0000)
commit23a04f9f40f2b32ee593b768483105b1c776814d
tree7c069255c0d34f30f2e3132dd5ce4a614de5ca29
parentb0284de05e07d56ff7de154d0c9263788755f5eb
ab8500_bm: Always send platform specific battery information via pdata

Currently the AB8500 battery management subsystem receives platform
specific information via two different means depending on how the
platform is booted. If DT is not enabled, a reference to a *_bm_data
data structure containing each platform specific attribute is passed
though platform_data. However, if DT is enabled, then platform_data
is empty and the reference is gained though a DT specific probe
function. There are two issues here 1) the same reference is
being collected each time and 2) the DT way doesn't allow any
provisions to select different platform specific attributes, which
kind of defeats the object.

Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ab8500-core.c
drivers/power/ab8500_bmdata.c
drivers/power/ab8500_btemp.c
drivers/power/ab8500_charger.c
drivers/power/ab8500_fg.c
drivers/power/abx500_chargalg.c
include/linux/mfd/abx500.h