]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: bq25890: On the bq25892 set the IINLIM based on external charger detection
authorHans de Goede <hdegoede@redhat.com>
Tue, 1 Feb 2022 13:06:57 +0000 (14:06 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 1 Feb 2022 13:55:12 +0000 (14:55 +0100)
commitcca91e0a15ce3babaf02f6b1214b344e98649b7d
treeb6d48d9596e1fa5a20cf2fcedaf534f7e89b4c4b
parente0550e1a5fcdb5acdedd4037f6dd0280172fb1e9
power: supply: bq25890: On the bq25892 set the IINLIM based on external charger detection

The bq25892 does not have builtin charger-type detection like the bq25980,
there might be some external charger detection capability, which will be
modelled as a power_supply class-device supplying the bq25892.

Use the usb_type property value from the supplier psy-device to set the
input-current-limit (when available).

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25890_charger.c