From 2770778f387796cd7308dbfb95d7fc75b5859c97 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Jirman?= <megi@xff.cz>
Date: Thu, 13 Jan 2022 13:53:03 +0100
Subject: [PATCH 323/463] power: supply: rk818-charger: Change charger type to
 MAINS

To un-confuse userspace.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
---
 drivers/power/supply/rk818_charger.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/supply/rk818_charger.c b/drivers/power/supply/rk818_charger.c
index ef179a6f5e3d8..04d8ea6835c95 100644
--- a/drivers/power/supply/rk818_charger.c
+++ b/drivers/power/supply/rk818_charger.c
@@ -536,7 +536,7 @@ static enum power_supply_property rk818_charger_props[] = {
  */
 static const struct power_supply_desc rk818_charger_desc = {
 	.name			= "rk818-charger",
-	.type			= POWER_SUPPLY_TYPE_BATTERY,
+	.type			= POWER_SUPPLY_TYPE_MAINS,
 	.properties		= rk818_charger_props,
 	.num_properties		= ARRAY_SIZE(rk818_charger_props),
 	.property_is_writeable	= rk818_charger_prop_writeable,
-- 
2.46.0

