summaryrefslogtreecommitdiffstats
path: root/drivers/power/max17042_battery.c
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-01-05 09:51:48 +0100
committerSebastian Reichel <sre@kernel.org>2015-01-20 13:58:32 +0100
commit478913fdbdfd4a781d91c993eb86838620fe7421 (patch)
tree4c3ccede16bb6d9b57c0946c2467b7dd82d27d8b /drivers/power/max17042_battery.c
parentf1300e7f6211139da9bc1ebf685f244fbd0ee58d (diff)
downloadop-kernel-dev-478913fdbdfd4a781d91c993eb86838620fe7421.zip
op-kernel-dev-478913fdbdfd4a781d91c993eb86838620fe7421.tar.gz
power: bq24190: Fix ignored supplicants
The driver mismatched 'num_supplicants' with 'num_supplies' of power_supply structure. It provided list of supplicants (power_supply.supplied_to) but did not set the number of supplicants. Instead it set the num_supplies which is used when iterating over number of supplies (power_supply.supplied_from). As a result the list of supplicants was ignored by core because its size was 0. Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Cc: <stable@vger.kernel.org> Fixes: d7bf353fd0aa ("bq24190_charger: Add support for TI BQ24190 Battery Charger") Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/max17042_battery.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud