Home
last modified time | relevance | path

Searched refs:bat_desc (Results 1 – 10 of 10) sorted by relevance

/Linux-v4.19/drivers/power/supply/
Drx51_battery.c32 struct power_supply_desc bat_desc; member
217 di->bat_desc.name = "rx51-battery"; in rx51_battery_probe()
218 di->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in rx51_battery_probe()
219 di->bat_desc.properties = rx51_battery_props; in rx51_battery_probe()
220 di->bat_desc.num_properties = ARRAY_SIZE(rx51_battery_props); in rx51_battery_probe()
221 di->bat_desc.get_property = rx51_battery_get_property; in rx51_battery_probe()
243 di->bat = power_supply_register(di->dev, &di->bat_desc, &psy_cfg); in rx51_battery_probe()
Dpmu_battery.c21 struct power_supply_desc bat_desc; member
172 pbat->bat_desc.name = pbat->name; in pmu_bat_init()
173 pbat->bat_desc.properties = pmu_bat_props; in pmu_bat_init()
174 pbat->bat_desc.num_properties = ARRAY_SIZE(pmu_bat_props); in pmu_bat_init()
175 pbat->bat_desc.get_property = pmu_bat_get_property; in pmu_bat_init()
180 &pbat->bat_desc, in pmu_bat_init()
Dmax1721x_battery.c61 struct power_supply_desc bat_desc; member
343 info->bat_desc.name = info->name; in devm_w1_max1721x_add_device()
349 info->bat_desc.no_thermal = true; in devm_w1_max1721x_add_device()
350 info->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in devm_w1_max1721x_add_device()
351 info->bat_desc.properties = max1721x_battery_props; in devm_w1_max1721x_add_device()
352 info->bat_desc.num_properties = ARRAY_SIZE(max1721x_battery_props); in devm_w1_max1721x_add_device()
353 info->bat_desc.get_property = max1721x_battery_get_property; in devm_w1_max1721x_add_device()
424 info->bat = devm_power_supply_register(&sl->dev, &info->bat_desc, in devm_w1_max1721x_add_device()
Dds2760_battery.c112 struct power_supply_desc bat_desc; member
695 di->bat_desc.name = name; in w1_ds2760_add_slave()
696 di->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in w1_ds2760_add_slave()
697 di->bat_desc.properties = ds2760_battery_props; in w1_ds2760_add_slave()
698 di->bat_desc.num_properties = ARRAY_SIZE(ds2760_battery_props); in w1_ds2760_add_slave()
699 di->bat_desc.get_property = ds2760_battery_get_property; in w1_ds2760_add_slave()
700 di->bat_desc.set_property = ds2760_battery_set_property; in w1_ds2760_add_slave()
701 di->bat_desc.property_is_writeable = in w1_ds2760_add_slave()
703 di->bat_desc.set_charged = ds2760_battery_set_charged; in w1_ds2760_add_slave()
704 di->bat_desc.external_power_changed = in w1_ds2760_add_slave()
[all …]
Dds2780_battery.c41 struct power_supply_desc bat_desc; member
754 dev_info->bat_desc.name = dev_name(&pdev->dev); in ds2780_battery_probe()
755 dev_info->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ds2780_battery_probe()
756 dev_info->bat_desc.properties = ds2780_battery_props; in ds2780_battery_probe()
757 dev_info->bat_desc.num_properties = ARRAY_SIZE(ds2780_battery_props); in ds2780_battery_probe()
758 dev_info->bat_desc.get_property = ds2780_battery_get_property; in ds2780_battery_probe()
762 dev_info->bat = power_supply_register(&pdev->dev, &dev_info->bat_desc, in ds2780_battery_probe()
Dds2781_battery.c39 struct power_supply_desc bat_desc; member
755 dev_info->bat_desc.name = dev_name(&pdev->dev); in ds2781_battery_probe()
756 dev_info->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ds2781_battery_probe()
757 dev_info->bat_desc.properties = ds2781_battery_props; in ds2781_battery_probe()
758 dev_info->bat_desc.num_properties = ARRAY_SIZE(ds2781_battery_props); in ds2781_battery_probe()
759 dev_info->bat_desc.get_property = ds2781_battery_get_property; in ds2781_battery_probe()
763 dev_info->bat = power_supply_register(&pdev->dev, &dev_info->bat_desc, in ds2781_battery_probe()
/Linux-v4.19/drivers/acpi/
Dsbs.c72 struct power_supply_desc bat_desc; member
534 battery->bat_desc.name = battery->name; in acpi_battery_add()
535 battery->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in acpi_battery_add()
537 battery->bat_desc.properties = sbs_charge_battery_props; in acpi_battery_add()
538 battery->bat_desc.num_properties = in acpi_battery_add()
541 battery->bat_desc.properties = sbs_energy_battery_props; in acpi_battery_add()
542 battery->bat_desc.num_properties = in acpi_battery_add()
545 battery->bat_desc.get_property = acpi_sbs_battery_get_property; in acpi_battery_add()
547 &battery->bat_desc, &psy_cfg); in acpi_battery_add()
Dbattery.c126 struct power_supply_desc bat_desc; member
812 battery->bat_desc.properties = charge_battery_props; in sysfs_add_battery()
813 battery->bat_desc.num_properties = in sysfs_add_battery()
816 battery->bat_desc.properties = in sysfs_add_battery()
818 battery->bat_desc.num_properties = in sysfs_add_battery()
821 battery->bat_desc.properties = energy_battery_props; in sysfs_add_battery()
822 battery->bat_desc.num_properties = in sysfs_add_battery()
826 battery->bat_desc.name = acpi_device_bid(battery->device); in sysfs_add_battery()
827 battery->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in sysfs_add_battery()
828 battery->bat_desc.get_property = acpi_battery_get_property; in sysfs_add_battery()
[all …]
/Linux-v4.19/drivers/hid/
Dwacom_sys.c1698 struct power_supply_desc *bat_desc = &battery->bat_desc; in __wacom_initialize_battery() local
1702 if (!devres_open_group(dev, bat_desc, GFP_KERNEL)) in __wacom_initialize_battery()
1709 bat_desc->properties = wacom_battery_props; in __wacom_initialize_battery()
1710 bat_desc->num_properties = ARRAY_SIZE(wacom_battery_props); in __wacom_initialize_battery()
1711 bat_desc->get_property = wacom_battery_get_property; in __wacom_initialize_battery()
1713 bat_desc->name = battery->bat_name; in __wacom_initialize_battery()
1714 bat_desc->type = POWER_SUPPLY_TYPE_USB; in __wacom_initialize_battery()
1715 bat_desc->use_for_apm = 0; in __wacom_initialize_battery()
1717 ps_bat = devm_power_supply_register(dev, bat_desc, &psy_cfg); in __wacom_initialize_battery()
1727 devres_close_group(dev, bat_desc); in __wacom_initialize_battery()
[all …]
Dwacom.h138 struct power_supply_desc bat_desc; member