Loading drivers/input/misc/cm36283.c +0 −33 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ */ #include <linux/delay.h> #include <linux/earlysuspend.h> #include <linux/i2c.h> #include <linux/input.h> #include <linux/interrupt.h> Loading Loading @@ -92,7 +91,6 @@ struct cm36283_info { struct input_dev *ls_input_dev; struct input_dev *ps_input_dev; struct early_suspend early_suspend; struct i2c_client *i2c_client; struct workqueue_struct *lp_wq; Loading Loading @@ -1443,29 +1441,6 @@ fail_free_intr_pin: return ret; } #ifdef CONFIG_HAS_EARLYSUSPEND static void cm36283_early_suspend(struct early_suspend *h) { struct cm36283_info *lpi = lp_info; D("[LS][CM36283] %s\n", __func__); if (lpi->als_enable) lightsensor_disable(lpi); } static void cm36283_late_resume(struct early_suspend *h) { struct cm36283_info *lpi = lp_info; D("[LS][CM36283] %s\n", __func__); if (!lpi->als_enable) lightsensor_enable(lpi); } #endif static int cm36283_parse_dt(struct device *dev, struct cm36283_platform_data *pdata) { Loading Loading @@ -1766,14 +1741,6 @@ static int cm36283_probe(struct i2c_client *client, if (ret) goto err_create_ps_device_file; #ifdef CONFIG_HAS_EARLYSUSPEND lpi->early_suspend.level = EARLY_SUSPEND_LEVEL_BLANK_SCREEN + 1; lpi->early_suspend.suspend = cm36283_early_suspend; lpi->early_suspend.resume = cm36283_late_resume; register_early_suspend(&lpi->early_suspend); #endif mutex_init(&wq_lock); INIT_DELAYED_WORK(&lpi->ldwork, lsensor_delay_work_handler); INIT_DELAYED_WORK(&lpi->pdwork, psensor_delay_work_handler); Loading Loading
drivers/input/misc/cm36283.c +0 −33 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ */ #include <linux/delay.h> #include <linux/earlysuspend.h> #include <linux/i2c.h> #include <linux/input.h> #include <linux/interrupt.h> Loading Loading @@ -92,7 +91,6 @@ struct cm36283_info { struct input_dev *ls_input_dev; struct input_dev *ps_input_dev; struct early_suspend early_suspend; struct i2c_client *i2c_client; struct workqueue_struct *lp_wq; Loading Loading @@ -1443,29 +1441,6 @@ fail_free_intr_pin: return ret; } #ifdef CONFIG_HAS_EARLYSUSPEND static void cm36283_early_suspend(struct early_suspend *h) { struct cm36283_info *lpi = lp_info; D("[LS][CM36283] %s\n", __func__); if (lpi->als_enable) lightsensor_disable(lpi); } static void cm36283_late_resume(struct early_suspend *h) { struct cm36283_info *lpi = lp_info; D("[LS][CM36283] %s\n", __func__); if (!lpi->als_enable) lightsensor_enable(lpi); } #endif static int cm36283_parse_dt(struct device *dev, struct cm36283_platform_data *pdata) { Loading Loading @@ -1766,14 +1741,6 @@ static int cm36283_probe(struct i2c_client *client, if (ret) goto err_create_ps_device_file; #ifdef CONFIG_HAS_EARLYSUSPEND lpi->early_suspend.level = EARLY_SUSPEND_LEVEL_BLANK_SCREEN + 1; lpi->early_suspend.suspend = cm36283_early_suspend; lpi->early_suspend.resume = cm36283_late_resume; register_early_suspend(&lpi->early_suspend); #endif mutex_init(&wq_lock); INIT_DELAYED_WORK(&lpi->ldwork, lsensor_delay_work_handler); INIT_DELAYED_WORK(&lpi->pdwork, psensor_delay_work_handler); Loading