static int sec_fuelgauge_resume(struct device *dev) { struct sec_fuelgauge_info *fuelgauge = dev_get_drvdata(dev); if (!sec_hal_fg_resume(fuelgauge->client)) dev_err(&fuelgauge->client->dev, "%s: Failed to Resume Fuelgauge\n", __func__); return 0; }
static int sec_fuelgauge_resume(struct i2c_client *client) { struct sec_fuelgauge_info *fuelgauge = i2c_get_clientdata(client); if (!sec_hal_fg_resume(client)) dev_err(&client->dev, "%s: Failed to Resume Fuelgauge\n", __func__); fuelgauge->initial_update_of_soc = true; return 0; }
static int sec_fuelgauge_resume(struct i2c_client *client) { struct sec_fuelgauge_info *fuelgauge = i2c_get_clientdata(client); if (!sec_hal_fg_resume(client)) dev_err(&client->dev, "%s: Failed to Resume Fuelgauge\n", __func__); if (fuelgauge->pdata->capacity_calculation_type & SEC_FUELGAUGE_CAPACITY_TYPE_ATOMIC) fuelgauge->initial_update_of_soc = true; return 0; }
static int sec_fuelgauge_resume(struct device *dev) { struct sec_fuelgauge_info *fuelgauge = dev_get_drvdata(dev); if (!sec_hal_fg_resume(fuelgauge)) dev_err(dev, "%s: Failed to Resume Fuelgauge\n", __func__); if (fuelgauge->pdata->capacity_calculation_type & SEC_FUELGAUGE_CAPACITY_TYPE_ATOMIC) fuelgauge->initial_update_of_soc = true; return 0; }
static int sec_fuelgauge_resume(struct device *dev) { struct sec_fuelgauge_info *fuelgauge = dev_get_drvdata(dev); struct power_supply *psy_battery; psy_battery = get_power_supply_by_name("battery"); if (!psy_battery) { pr_err("%s : can't get battery psy\n", __func__); } else { struct sec_battery_info *battery; battery = container_of(psy_battery, struct sec_battery_info, psy_bat); battery->fuelgauge_in_sleep = false; dev_info(&fuelgauge->client->dev, "%s fuelgauge in sleep (%d)\n", __func__, battery->fuelgauge_in_sleep); } if (!sec_hal_fg_resume(fuelgauge->client)) dev_err(&fuelgauge->client->dev, "%s: Failed to Resume Fuelgauge\n", __func__); return 0; }