batt             1107 drivers/char/rtc.c 	unsigned char batt, ctrl;
batt             1111 drivers/char/rtc.c 	batt = CMOS_READ(RTC_VALID) & RTC_VRT;
batt             1170 drivers/char/rtc.c 		   batt ? "okay" : "dead");
batt              318 drivers/hid/hid-steam.c 	u8 batt;
batt              323 drivers/hid/hid-steam.c 	batt = steam->battery_charge;
batt              337 drivers/hid/hid-steam.c 		val->intval = batt;
batt             1000 drivers/hid/hid-steam.c 	u8 batt = data[14];
batt             1008 drivers/hid/hid-steam.c 		steam->battery_charge = batt;
batt               64 drivers/power/supply/axp20x_battery.c 	int	(*get_max_voltage)(struct axp20x_batt_ps *batt, int *val);
batt               65 drivers/power/supply/axp20x_battery.c 	int	(*set_max_voltage)(struct axp20x_batt_ps *batt, int val);
batt               70 drivers/power/supply/axp20x_battery.c 	struct power_supply *batt;
batt              595 drivers/power/supply/axp20x_battery.c 	axp20x_batt->batt = devm_power_supply_register(&pdev->dev,
batt              598 drivers/power/supply/axp20x_battery.c 	if (IS_ERR(axp20x_batt->batt)) {
batt              600 drivers/power/supply/axp20x_battery.c 			PTR_ERR(axp20x_batt->batt));
batt              601 drivers/power/supply/axp20x_battery.c 		return PTR_ERR(axp20x_batt->batt);
batt              604 drivers/power/supply/axp20x_battery.c 	if (!power_supply_get_battery_info(axp20x_batt->batt, &info)) {
batt               41 drivers/power/supply/lego_ev3_battery.c 	struct lego_ev3_battery *batt = power_supply_get_drvdata(psy);
batt               46 drivers/power/supply/lego_ev3_battery.c 		val->intval = batt->technology;
batt               50 drivers/power/supply/lego_ev3_battery.c 		ret = iio_read_channel_processed(batt->iio_v, &val->intval);
batt               58 drivers/power/supply/lego_ev3_battery.c 		ret = iio_read_channel_processed(batt->iio_i, &val2);
batt               67 drivers/power/supply/lego_ev3_battery.c 		val->intval = batt->v_max;
batt               70 drivers/power/supply/lego_ev3_battery.c 		val->intval = batt->v_min;
batt               74 drivers/power/supply/lego_ev3_battery.c 		ret = iio_read_channel_processed(batt->iio_i, &val->intval);
batt               95 drivers/power/supply/lego_ev3_battery.c 	struct lego_ev3_battery *batt = power_supply_get_drvdata(psy);
batt              107 drivers/power/supply/lego_ev3_battery.c 		if (batt->technology != POWER_SUPPLY_TECHNOLOGY_UNKNOWN)
batt              111 drivers/power/supply/lego_ev3_battery.c 			batt->technology = POWER_SUPPLY_TECHNOLOGY_NiMH;
batt              112 drivers/power/supply/lego_ev3_battery.c 			batt->v_max = 7800000;
batt              113 drivers/power/supply/lego_ev3_battery.c 			batt->v_min = 5400000;
batt              129 drivers/power/supply/lego_ev3_battery.c 	struct lego_ev3_battery *batt = power_supply_get_drvdata(psy);
batt              132 drivers/power/supply/lego_ev3_battery.c 		batt->technology == POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
batt              157 drivers/power/supply/lego_ev3_battery.c 	struct lego_ev3_battery *batt;
batt              161 drivers/power/supply/lego_ev3_battery.c 	batt = devm_kzalloc(dev, sizeof(*batt), GFP_KERNEL);
batt              162 drivers/power/supply/lego_ev3_battery.c 	if (!batt)
batt              165 drivers/power/supply/lego_ev3_battery.c 	platform_set_drvdata(pdev, batt);
batt              167 drivers/power/supply/lego_ev3_battery.c 	batt->iio_v = devm_iio_channel_get(dev, "voltage");
batt              168 drivers/power/supply/lego_ev3_battery.c 	err = PTR_ERR_OR_ZERO(batt->iio_v);
batt              175 drivers/power/supply/lego_ev3_battery.c 	batt->iio_i = devm_iio_channel_get(dev, "current");
batt              176 drivers/power/supply/lego_ev3_battery.c 	err = PTR_ERR_OR_ZERO(batt->iio_i);
batt              183 drivers/power/supply/lego_ev3_battery.c 	batt->rechargeable_gpio = devm_gpiod_get(dev, "rechargeable", GPIOD_IN);
batt              184 drivers/power/supply/lego_ev3_battery.c 	err = PTR_ERR_OR_ZERO(batt->rechargeable_gpio);
batt              195 drivers/power/supply/lego_ev3_battery.c 	if (gpiod_get_value(batt->rechargeable_gpio)) {
batt              197 drivers/power/supply/lego_ev3_battery.c 		batt->technology = POWER_SUPPLY_TECHNOLOGY_LION;
batt              198 drivers/power/supply/lego_ev3_battery.c 		batt->v_max = 84000000;
batt              199 drivers/power/supply/lego_ev3_battery.c 		batt->v_min = 60000000;
batt              202 drivers/power/supply/lego_ev3_battery.c 		batt->technology = POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
batt              203 drivers/power/supply/lego_ev3_battery.c 		batt->v_max = 90000000;
batt              204 drivers/power/supply/lego_ev3_battery.c 		batt->v_min = 48000000;
batt              208 drivers/power/supply/lego_ev3_battery.c 	psy_cfg.drv_data = batt;
batt              210 drivers/power/supply/lego_ev3_battery.c 	batt->psy = devm_power_supply_register(dev, &lego_ev3_battery_desc,
batt              212 drivers/power/supply/lego_ev3_battery.c 	err = PTR_ERR_OR_ZERO(batt->psy);
batt               81 drivers/power/supply/lp8727_charger.c 	struct power_supply *batt;
batt              243 drivers/power/supply/lp8727_charger.c 	power_supply_changed(pchg->psy->batt);
batt              465 drivers/power/supply/lp8727_charger.c 	psy->batt = power_supply_register(pchg->dev, &lp8727_batt_desc, NULL);
batt              466 drivers/power/supply/lp8727_charger.c 	if (IS_ERR(psy->batt))
batt              488 drivers/power/supply/lp8727_charger.c 	power_supply_unregister(psy->batt);