mfd: Add parameter to disable ab8500 battery management
authorRickard Andersson <rickard.andersson@stericsson.com>
Tue, 17 Apr 2012 07:30:57 +0000 (09:30 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 1 May 2012 11:33:53 +0000 (13:33 +0200)
commit6ef9418c9e6fc41e6c1066b6423f3a1625e4b822
treee6747f8b325172df10684fe2b08dd08bbfc7715a
parent112a80d29b529d4057777ac2cb4ec15ff5b6d210
mfd: Add parameter to disable ab8500 battery management

This patch makes it possible to disable battery management
via a module boot parameter. When 'ab8500-core.no_bm=1' then
ab8500_btemp, ab8500_chargalg, ab8500_charger and ab8500_fg will
not be probed. This boot parameter is used for scripted testing
of the system.

Signed-off-by: Rickard Andersson <rickard.andersson@stericsson.com>
Reviewed-by: Jonas Aberg <jonas.aberg@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-core.c