Searched refs:bat_desc (Results 1 – 10 of 10) sorted by relevance
/Linux-v5.10/drivers/power/supply/ |
D | rx51_battery.c | 19 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()
|
D | pmu_battery.c | 18 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()
|
D | max1721x_battery.c | 61 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()
|
D | ds2760_battery.c | 112 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 …]
|
D | ds2781_battery.c | 35 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()
|
D | ds2780_battery.c | 37 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()
|
/Linux-v5.10/drivers/acpi/ |
D | sbs.c | 56 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()
|
D | battery.c | 104 struct power_supply_desc bat_desc; member 817 battery->bat_desc.properties = in sysfs_add_battery() 819 battery->bat_desc.num_properties = in sysfs_add_battery() 822 battery->bat_desc.properties = charge_battery_props; in sysfs_add_battery() 823 battery->bat_desc.num_properties = in sysfs_add_battery() 828 battery->bat_desc.properties = in sysfs_add_battery() 830 battery->bat_desc.num_properties = in sysfs_add_battery() 833 battery->bat_desc.properties = energy_battery_props; in sysfs_add_battery() 834 battery->bat_desc.num_properties = in sysfs_add_battery() 839 battery->bat_desc.name = acpi_device_bid(battery->device); in sysfs_add_battery() [all …]
|
/Linux-v5.10/drivers/hid/ |
D | wacom_sys.c | 1735 struct power_supply_desc *bat_desc = &battery->bat_desc; in __wacom_initialize_battery() local 1739 if (!devres_open_group(dev, bat_desc, GFP_KERNEL)) in __wacom_initialize_battery() 1746 bat_desc->properties = wacom_battery_props; in __wacom_initialize_battery() 1747 bat_desc->num_properties = ARRAY_SIZE(wacom_battery_props); in __wacom_initialize_battery() 1748 bat_desc->get_property = wacom_battery_get_property; in __wacom_initialize_battery() 1750 bat_desc->name = battery->bat_name; in __wacom_initialize_battery() 1751 bat_desc->type = POWER_SUPPLY_TYPE_USB; in __wacom_initialize_battery() 1752 bat_desc->use_for_apm = 0; in __wacom_initialize_battery() 1754 ps_bat = devm_power_supply_register(dev, bat_desc, &psy_cfg); in __wacom_initialize_battery() 1764 devres_close_group(dev, bat_desc); in __wacom_initialize_battery() [all …]
|
D | wacom.h | 135 struct power_supply_desc bat_desc; member
|