Home
last modified time | relevance | path

Searched refs:batt (Results 1 – 5 of 5) sorted by relevance

/drivers/power/supply/
Dlego_ev3_battery.c41 struct lego_ev3_battery *batt = power_supply_get_drvdata(psy); in lego_ev3_battery_get_property() local
46 val->intval = batt->technology; in lego_ev3_battery_get_property()
50 ret = iio_read_channel_processed(batt->iio_v, &val->intval); in lego_ev3_battery_get_property()
58 ret = iio_read_channel_processed(batt->iio_i, &val2); in lego_ev3_battery_get_property()
67 val->intval = batt->v_max; in lego_ev3_battery_get_property()
70 val->intval = batt->v_min; in lego_ev3_battery_get_property()
74 ret = iio_read_channel_processed(batt->iio_i, &val->intval); in lego_ev3_battery_get_property()
95 struct lego_ev3_battery *batt = power_supply_get_drvdata(psy); in lego_ev3_battery_set_property() local
107 if (batt->technology != POWER_SUPPLY_TECHNOLOGY_UNKNOWN) in lego_ev3_battery_set_property()
111 batt->technology = POWER_SUPPLY_TECHNOLOGY_NiMH; in lego_ev3_battery_set_property()
[all …]
Daxp20x_battery.c65 int (*get_max_voltage)(struct axp20x_batt_ps *batt, int *val);
66 int (*set_max_voltage)(struct axp20x_batt_ps *batt, int val);
71 struct power_supply *batt; member
607 axp20x_batt->batt = devm_power_supply_register(&pdev->dev, in axp20x_power_probe()
610 if (IS_ERR(axp20x_batt->batt)) { in axp20x_power_probe()
612 PTR_ERR(axp20x_batt->batt)); in axp20x_power_probe()
613 return PTR_ERR(axp20x_batt->batt); in axp20x_power_probe()
616 if (!power_supply_get_battery_info(axp20x_batt->batt, &info)) { in axp20x_power_probe()
Dlp8727_charger.c81 struct power_supply *batt; member
243 power_supply_changed(pchg->psy->batt); in lp8727_delayed_func()
465 psy->batt = power_supply_register(pchg->dev, &lp8727_batt_desc, NULL); in lp8727_register_psy()
466 if (IS_ERR(psy->batt)) in lp8727_register_psy()
488 power_supply_unregister(psy->batt); in lp8727_unregister_psy()
Dsamsung-sdi-battery.c902 struct samsung_sdi_battery *batt; in samsung_sdi_battery_get_info() local
906 batt = &samsung_sdi_batteries[i]; in samsung_sdi_battery_get_info()
907 if (!strcmp(compatible, batt->compatible)) in samsung_sdi_battery_get_info()
914 *info = &batt->info; in samsung_sdi_battery_get_info()
916 batt->name, batt->info.charge_full_design_uah / 1000); in samsung_sdi_battery_get_info()
/drivers/hid/
Dhid-steam.c328 u8 batt; in steam_battery_get_property() local
333 batt = steam->battery_charge; in steam_battery_get_property()
347 val->intval = batt; in steam_battery_get_property()
1012 u8 batt = data[14]; in steam_do_battery_event() local
1020 steam->battery_charge = batt; in steam_do_battery_event()