]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
power: supply: ug3105_battery: Let the core handle POWER_SUPPLY_PROP_TECHNOLOGY
authorHans de Goede <hdegoede@redhat.com>
Sun, 15 Dec 2024 17:21:26 +0000 (18:21 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 20 Dec 2024 00:08:51 +0000 (01:08 +0100)
The power-supply core already takes care of handling
POWER_SUPPLY_PROP_TECHNOLOGY based on the battery_info.

Drop the unnecessary handling from the driver.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20241215172133.178460-4-hdegoede@redhat.com
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ug3105_battery.c

index ccc5c4d2e2308195b40a79f8fe6b4f12663d5ec5..38e23bdd46033dab5af89de4c73a3afb4720c3b5 100644 (file)
@@ -287,7 +287,6 @@ out:
 static enum power_supply_property ug3105_battery_props[] = {
        POWER_SUPPLY_PROP_STATUS,
        POWER_SUPPLY_PROP_PRESENT,
-       POWER_SUPPLY_PROP_TECHNOLOGY,
        POWER_SUPPLY_PROP_SCOPE,
        POWER_SUPPLY_PROP_VOLTAGE_NOW,
        POWER_SUPPLY_PROP_VOLTAGE_OCV,
@@ -316,9 +315,6 @@ static int ug3105_get_property(struct power_supply *psy,
        case POWER_SUPPLY_PROP_PRESENT:
                val->intval = 1;
                break;
-       case POWER_SUPPLY_PROP_TECHNOLOGY:
-               val->intval = chip->info->technology;
-               break;
        case POWER_SUPPLY_PROP_SCOPE:
                val->intval = POWER_SUPPLY_SCOPE_SYSTEM;
                break;