struct bq27510_device_info {
struct device *dev;
struct power_supply bat;
- struct power_supply ac;
+ ///struct power_supply ac;
struct delayed_work work;
unsigned int interval;
struct i2c_client *client;
di->bat.num_properties = ARRAY_SIZE(bq27510_battery_props);
di->bat.get_property = bq27510_battery_get_property;
- di->ac.type = POWER_SUPPLY_TYPE_MAINS;
+ /*di->ac.type = POWER_SUPPLY_TYPE_MAINS;
di->ac.properties = rk29_ac_props;
di->ac.num_properties = ARRAY_SIZE(rk29_ac_props);
- di->ac.get_property = rk29_ac_get_property;
+ di->ac.get_property = rk29_ac_get_property;*/
}
#ifdef CONFIG_CHECK_BATT_CAPACITY
u8 buf[2];
#endif
-
+
di = kzalloc(sizeof(*di), GFP_KERNEL);
if (!di) {
dev_err(&client->dev, "failed to allocate device info data\n");