Loading drivers/input/touchscreen/synaptics_i2c_rmi4.c +11 −30 Original line number Diff line number Diff line Loading @@ -113,6 +113,14 @@ static int synaptics_rmi4_reset_device(struct synaptics_rmi4_data *rmi4_data); static void synaptics_rmi4_sensor_wake(struct synaptics_rmi4_data *rmi4_data); static void __maybe_unused synaptics_rmi4_sensor_sleep( struct synaptics_rmi4_data *rmi4_data); static int __maybe_unused synaptics_rmi4_regulator_lpm( struct synaptics_rmi4_data *rmi4_data, bool on); static void __maybe_unused synaptics_rmi4_release_all( struct synaptics_rmi4_data *rmi4_data); static int synaptics_rmi4_check_configuration(struct synaptics_rmi4_data *rmi4_data); Loading @@ -121,7 +129,6 @@ static int synaptics_rmi4_suspend(struct device *dev); static int synaptics_rmi4_resume(struct device *dev); #ifdef CONFIG_PM static ssize_t synaptics_rmi4_full_pm_cycle_show(struct device *dev, struct device_attribute *attr, char *buf); Loading @@ -136,7 +143,6 @@ static void synaptics_rmi4_early_suspend(struct early_suspend *h); static void synaptics_rmi4_late_resume(struct early_suspend *h); #endif #endif static ssize_t synaptics_rmi4_f01_reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); Loading Loading @@ -393,11 +399,9 @@ struct synaptics_rmi4_exp_fn { }; static struct device_attribute attrs[] = { #ifdef CONFIG_PM __ATTR(full_pm_cycle, (S_IRUGO | S_IWUSR | S_IWGRP), synaptics_rmi4_full_pm_cycle_show, synaptics_rmi4_full_pm_cycle_store), #endif __ATTR(reset, S_IWUSR | S_IWGRP, NULL, synaptics_rmi4_f01_reset_store), Loading Loading @@ -449,7 +453,6 @@ static int synaptics_rmi4_debug_suspend_get(void *_data, u64 *val) DEFINE_SIMPLE_ATTRIBUTE(debug_suspend_fops, synaptics_rmi4_debug_suspend_get, synaptics_rmi4_debug_suspend_set, "%lld\n"); #ifdef CONFIG_PM static ssize_t synaptics_rmi4_full_pm_cycle_show(struct device *dev, struct device_attribute *attr, char *buf) { Loading Loading @@ -502,12 +505,6 @@ static void configure_sleep(struct synaptics_rmi4_data *rmi4_data) return; } #endif #else static void configure_sleep(struct synaptics_rmi4_data *rmi4_data) { return; } #endif static ssize_t synaptics_rmi4_f01_reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) Loading Loading @@ -3196,7 +3193,6 @@ static int synaptics_rmi4_remove(struct i2c_client *client) return 0; } #ifdef CONFIG_PM /** * synaptics_rmi4_sensor_sleep() * Loading Loading @@ -3545,6 +3541,7 @@ static int synaptics_rmi4_check_configuration(struct synaptics_rmi4_data * sleep (if not already done so during the early suspend phase), * disables the interrupt, and turns off the power to the sensor. */ #ifdef CONFIG_PM static int synaptics_rmi4_suspend(struct device *dev) { struct synaptics_rmi4_data *rmi4_data = dev_get_drvdata(dev); Loading Loading @@ -3680,28 +3677,12 @@ static const struct dev_pm_ops synaptics_rmi4_dev_pm_ops = { }; #endif #else static void synaptics_rmi4_sensor_wake(struct synaptics_rmi4_data *rmi4_data) { return; } static void synaptics_rmi4_sensor_sleep(struct synaptics_rmi4_data *rmi4_data) { return; } static int synaptics_rmi4_check_configuration(struct synaptics_rmi4_data *rmi4_data) { return 0; } static int synaptics_rmi4_suspend(struct device *dev); static int synaptics_rmi4_suspend(struct device *dev) { return 0; } static int synaptics_rmi4_resume(struct device *dev); static int synaptics_rmi4_resume(struct device *dev) { return 0; } Loading Loading
drivers/input/touchscreen/synaptics_i2c_rmi4.c +11 −30 Original line number Diff line number Diff line Loading @@ -113,6 +113,14 @@ static int synaptics_rmi4_reset_device(struct synaptics_rmi4_data *rmi4_data); static void synaptics_rmi4_sensor_wake(struct synaptics_rmi4_data *rmi4_data); static void __maybe_unused synaptics_rmi4_sensor_sleep( struct synaptics_rmi4_data *rmi4_data); static int __maybe_unused synaptics_rmi4_regulator_lpm( struct synaptics_rmi4_data *rmi4_data, bool on); static void __maybe_unused synaptics_rmi4_release_all( struct synaptics_rmi4_data *rmi4_data); static int synaptics_rmi4_check_configuration(struct synaptics_rmi4_data *rmi4_data); Loading @@ -121,7 +129,6 @@ static int synaptics_rmi4_suspend(struct device *dev); static int synaptics_rmi4_resume(struct device *dev); #ifdef CONFIG_PM static ssize_t synaptics_rmi4_full_pm_cycle_show(struct device *dev, struct device_attribute *attr, char *buf); Loading @@ -136,7 +143,6 @@ static void synaptics_rmi4_early_suspend(struct early_suspend *h); static void synaptics_rmi4_late_resume(struct early_suspend *h); #endif #endif static ssize_t synaptics_rmi4_f01_reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count); Loading Loading @@ -393,11 +399,9 @@ struct synaptics_rmi4_exp_fn { }; static struct device_attribute attrs[] = { #ifdef CONFIG_PM __ATTR(full_pm_cycle, (S_IRUGO | S_IWUSR | S_IWGRP), synaptics_rmi4_full_pm_cycle_show, synaptics_rmi4_full_pm_cycle_store), #endif __ATTR(reset, S_IWUSR | S_IWGRP, NULL, synaptics_rmi4_f01_reset_store), Loading Loading @@ -449,7 +453,6 @@ static int synaptics_rmi4_debug_suspend_get(void *_data, u64 *val) DEFINE_SIMPLE_ATTRIBUTE(debug_suspend_fops, synaptics_rmi4_debug_suspend_get, synaptics_rmi4_debug_suspend_set, "%lld\n"); #ifdef CONFIG_PM static ssize_t synaptics_rmi4_full_pm_cycle_show(struct device *dev, struct device_attribute *attr, char *buf) { Loading Loading @@ -502,12 +505,6 @@ static void configure_sleep(struct synaptics_rmi4_data *rmi4_data) return; } #endif #else static void configure_sleep(struct synaptics_rmi4_data *rmi4_data) { return; } #endif static ssize_t synaptics_rmi4_f01_reset_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) Loading Loading @@ -3196,7 +3193,6 @@ static int synaptics_rmi4_remove(struct i2c_client *client) return 0; } #ifdef CONFIG_PM /** * synaptics_rmi4_sensor_sleep() * Loading Loading @@ -3545,6 +3541,7 @@ static int synaptics_rmi4_check_configuration(struct synaptics_rmi4_data * sleep (if not already done so during the early suspend phase), * disables the interrupt, and turns off the power to the sensor. */ #ifdef CONFIG_PM static int synaptics_rmi4_suspend(struct device *dev) { struct synaptics_rmi4_data *rmi4_data = dev_get_drvdata(dev); Loading Loading @@ -3680,28 +3677,12 @@ static const struct dev_pm_ops synaptics_rmi4_dev_pm_ops = { }; #endif #else static void synaptics_rmi4_sensor_wake(struct synaptics_rmi4_data *rmi4_data) { return; } static void synaptics_rmi4_sensor_sleep(struct synaptics_rmi4_data *rmi4_data) { return; } static int synaptics_rmi4_check_configuration(struct synaptics_rmi4_data *rmi4_data) { return 0; } static int synaptics_rmi4_suspend(struct device *dev); static int synaptics_rmi4_suspend(struct device *dev) { return 0; } static int synaptics_rmi4_resume(struct device *dev); static int synaptics_rmi4_resume(struct device *dev) { return 0; } Loading