static int sec_charger_suspend(struct device *dev) { struct sec_charger_info *charger = dev_get_drvdata(dev); if (!sec_hal_chg_suspend(charger)) dev_err(dev, "%s: Failed to Suspend Charger\n", __func__); return 0; }
static int sec_charger_suspend(struct i2c_client *client, pm_message_t state) { if (!sec_hal_chg_suspend(client)) dev_err(&client->dev, "%s: Failed to Suspend Charger\n", __func__); return 0; }
static int sec_charger_suspend(struct device *dev) { struct i2c_client *client = container_of(dev, struct i2c_client, dev); if (!sec_hal_chg_suspend(client)) dev_err(dev, "%s: Failed to Suspend Charger\n", __func__); return 0; }