Skip to content

Commit db9d8ec

Browse files
jwrdegoedesre
authored andcommitted
power: supply: ug3105_battery: Let the core handle POWER_SUPPLY_PROP_TECHNOLOGY
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent de68987 commit db9d8ec

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/power/supply/ug3105_battery.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ static void ug3105_work(struct work_struct *work)
287287
static enum power_supply_property ug3105_battery_props[] = {
288288
POWER_SUPPLY_PROP_STATUS,
289289
POWER_SUPPLY_PROP_PRESENT,
290-
POWER_SUPPLY_PROP_TECHNOLOGY,
291290
POWER_SUPPLY_PROP_SCOPE,
292291
POWER_SUPPLY_PROP_VOLTAGE_NOW,
293292
POWER_SUPPLY_PROP_VOLTAGE_OCV,
@@ -316,9 +315,6 @@ static int ug3105_get_property(struct power_supply *psy,
316315
case POWER_SUPPLY_PROP_PRESENT:
317316
val->intval = 1;
318317
break;
319-
case POWER_SUPPLY_PROP_TECHNOLOGY:
320-
val->intval = chip->info->technology;
321-
break;
322318
case POWER_SUPPLY_PROP_SCOPE:
323319
val->intval = POWER_SUPPLY_SCOPE_SYSTEM;
324320
break;

0 commit comments

Comments
 (0)