static void cypress_touchkey_early_suspend(struct early_suspend *h) { struct cypress_touchkey_info *info; info = container_of(h, struct cypress_touchkey_info, early_suspend); cypress_touchkey_suspend(&info->client->dev); #ifdef CONFIG_LEDS_CLASS info->current_status = 0; #endif }
static void cypress_input_close(struct input_dev *dev) { struct cypress_touchkey_info *info = input_get_drvdata(dev); dev_info(&info->client->dev, "%s.\n", __func__); gpio_tlmm_config(GPIO_CFG(info->pdata->gpio_scl, 0, GPIO_CFG_INPUT, GPIO_CFG_PULL_DOWN, GPIO_CFG_2MA), 1); gpio_tlmm_config(GPIO_CFG(info->pdata->gpio_sda, 0, GPIO_CFG_INPUT, GPIO_CFG_PULL_DOWN, GPIO_CFG_2MA), 1); cypress_touchkey_suspend(&info->client->dev); }
static void cypress_touchkey_early_suspend(struct early_suspend *h) { struct cypress_touchkey_info *info; info = container_of(h, struct cypress_touchkey_info, early_suspend); cypress_touchkey_suspend(&info->client->dev); }