power: supply: bq2415x_charger: report online status
authorSicelo A. Mhlongo <absicsz@gmail.com>
Thu, 29 Feb 2024 06:37:21 +0000 (08:37 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 1 Mar 2024 01:26:10 +0000 (02:26 +0100)
commit9a451f1b028e116d037a93bf13eb8f8620994205
treebcf508d3793fd50c46e87e875cddfef3f3190f14
parentea4367c40c79a5f16cb0de8a94a6b72697d37f06
power: supply: bq2415x_charger: report online status

Provide the Online property. This chip does not have specific flags to
indicate the presence of an input voltage, but this is implied by all valid
charging states. Fault states also only occur when VBUS is present, so set
Online true for those as well.

Signed-off-by: Sicelo A. Mhlongo <absicsz@gmail.com>
Link: https://lore.kernel.org/r/20240229063721.2592069-2-absicsz@gmail.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq2415x_charger.c