Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/power/supply/
Drx51_battery.c19 struct power_supply_desc bat_desc; member
204 di->bat_desc.name = "rx51-battery"; in rx51_battery_probe()
205 di->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in rx51_battery_probe()
206 di->bat_desc.properties = rx51_battery_props; in rx51_battery_probe()
207 di->bat_desc.num_properties = ARRAY_SIZE(rx51_battery_props); in rx51_battery_probe()
208 di->bat_desc.get_property = rx51_battery_get_property; in rx51_battery_probe()
230 di->bat = power_supply_register(di->dev, &di->bat_desc, &psy_cfg); in rx51_battery_probe()
Dpmu_battery.c18 struct power_supply_desc bat_desc; member
169 pbat->bat_desc.name = pbat->name; in pmu_bat_init()
170 pbat->bat_desc.properties = pmu_bat_props; in pmu_bat_init()
171 pbat->bat_desc.num_properties = ARRAY_SIZE(pmu_bat_props); in pmu_bat_init()
172 pbat->bat_desc.get_property = pmu_bat_get_property; in pmu_bat_init()
177 &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.c37 struct power_supply_desc bat_desc; member
758 dev_info->bat_desc.name = dev_name(&pdev->dev); in ds2780_battery_probe()
759 dev_info->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ds2780_battery_probe()
760 dev_info->bat_desc.properties = ds2780_battery_props; in ds2780_battery_probe()
761 dev_info->bat_desc.num_properties = ARRAY_SIZE(ds2780_battery_props); in ds2780_battery_probe()
762 dev_info->bat_desc.get_property = ds2780_battery_get_property; in ds2780_battery_probe()
768 &dev_info->bat_desc, in ds2780_battery_probe()
Dds2781_battery.c35 struct power_supply_desc bat_desc; member
762 dev_info->bat_desc.name = dev_name(&pdev->dev); in ds2781_battery_probe()
763 dev_info->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in ds2781_battery_probe()
764 dev_info->bat_desc.properties = ds2781_battery_props; in ds2781_battery_probe()
765 dev_info->bat_desc.num_properties = ARRAY_SIZE(ds2781_battery_props); in ds2781_battery_probe()
766 dev_info->bat_desc.get_property = ds2781_battery_get_property; in ds2781_battery_probe()
772 &dev_info->bat_desc, in ds2781_battery_probe()
/linux-6.1.9/drivers/acpi/
Dsbs.c56 struct power_supply_desc bat_desc; member
522 battery->bat_desc.name = battery->name; in acpi_battery_add()
523 battery->bat_desc.type = POWER_SUPPLY_TYPE_BATTERY; in acpi_battery_add()
525 battery->bat_desc.properties = sbs_charge_battery_props; in acpi_battery_add()
526 battery->bat_desc.num_properties = in acpi_battery_add()
529 battery->bat_desc.properties = sbs_energy_battery_props; in acpi_battery_add()
530 battery->bat_desc.num_properties = in acpi_battery_add()
533 battery->bat_desc.get_property = acpi_sbs_battery_get_property; in acpi_battery_add()
535 &battery->bat_desc, &psy_cfg); in acpi_battery_add()
Dbattery.c97 struct power_supply_desc bat_desc; member
821 battery->bat_desc.properties = in sysfs_add_battery()
823 battery->bat_desc.num_properties = in sysfs_add_battery()
826 battery->bat_desc.properties = charge_battery_props; in sysfs_add_battery()
827 battery->bat_desc.num_properties = in sysfs_add_battery()
832 battery->bat_desc.properties = in sysfs_add_battery()
834 battery->bat_desc.num_properties = in sysfs_add_battery()
837 battery->bat_desc.properties = energy_battery_props; in sysfs_add_battery()
838 battery->bat_desc.num_properties = in sysfs_add_battery()
843 battery->bat_desc.name = acpi_device_bid(battery->device); in sysfs_add_battery()
[all …]
/linux-6.1.9/drivers/hid/
Dwacom_sys.c1762 struct power_supply_desc *bat_desc = &battery->bat_desc; in __wacom_initialize_battery() local
1766 if (!devres_open_group(dev, bat_desc, GFP_KERNEL)) in __wacom_initialize_battery()
1773 bat_desc->properties = wacom_battery_props; in __wacom_initialize_battery()
1774 bat_desc->num_properties = ARRAY_SIZE(wacom_battery_props); in __wacom_initialize_battery()
1775 bat_desc->get_property = wacom_battery_get_property; in __wacom_initialize_battery()
1777 bat_desc->name = battery->bat_name; in __wacom_initialize_battery()
1778 bat_desc->type = POWER_SUPPLY_TYPE_BATTERY; in __wacom_initialize_battery()
1779 bat_desc->use_for_apm = 0; in __wacom_initialize_battery()
1781 ps_bat = devm_power_supply_register(dev, bat_desc, &psy_cfg); in __wacom_initialize_battery()
1791 devres_close_group(dev, bat_desc); in __wacom_initialize_battery()
[all …]
Dwacom.h133 struct power_supply_desc bat_desc; member