Lines Matching refs:battery
101 struct power_supply battery; member
803 info = container_of(psy, struct pm860x_battery_info, battery); in pm860x_external_power_changed()
939 info->battery.name = "battery-monitor"; in pm860x_battery_probe()
940 info->battery.type = POWER_SUPPLY_TYPE_BATTERY; in pm860x_battery_probe()
941 info->battery.properties = pm860x_batt_props; in pm860x_battery_probe()
942 info->battery.num_properties = ARRAY_SIZE(pm860x_batt_props); in pm860x_battery_probe()
943 info->battery.get_property = pm860x_batt_get_prop; in pm860x_battery_probe()
944 info->battery.set_property = pm860x_batt_set_prop; in pm860x_battery_probe()
945 info->battery.external_power_changed = pm860x_external_power_changed; in pm860x_battery_probe()
956 ret = power_supply_register(&pdev->dev, &info->battery); in pm860x_battery_probe()
959 info->battery.dev->parent = &pdev->dev; in pm860x_battery_probe()
984 power_supply_unregister(&info->battery); in pm860x_battery_probe()
994 power_supply_unregister(&info->battery); in pm860x_battery_remove()