power: supply: axp288_charger: Do not bind when the charge function is not used
authorHans de Goede <hdegoede@redhat.com>
Wed, 18 Apr 2018 12:08:20 +0000 (14:08 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.co.uk>
Wed, 25 Apr 2018 22:44:40 +0000 (00:44 +0200)
commitefb440ecc15610539dc7a177ae8eed4bf536da06
treeb9314b3ce741d9096b9666dd21b383ea08d51efd
parent5b76ad50d20feb8867ebe9112c2287ef57f976db
power: supply: axp288_charger: Do not bind when the charge function is not used

Some devices with an AXP288 PMIC do not have a battery at all, or use
external charger and fuelgauge ICs instead of the AXP288 builtin
functionality.

On such devices we should not bind to the charge function to avoid
exporting a non working power_supply class device.

Cc: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
drivers/power/supply/axp288_charger.c