Lines Matching defs:ac
38 struct power_supply ac;
87 struct wacom_data *wdata = container_of(psy, struct wacom_data, ac);
356 * failed then there is no need to create ac attribute
361 wdata->ac.properties = wacom_ac_props;
362 wdata->ac.num_properties = ARRAY_SIZE(wacom_ac_props);
363 wdata->ac.get_property = wacom_ac_get_property;
364 wdata->ac.name = "wacom_ac";
365 wdata->ac.type = POWER_SUPPLY_TYPE_MAINS;
366 wdata->ac.use_for_apm = 0;
368 ret = power_supply_register(&hdev->dev, &wdata->ac);
371 "can't create ac battery attribute, err: %d\n", ret);
373 * ac attribute is not critical for the tablet, but if it
431 power_supply_unregister(&wdata->ac);