linux/drivers/input
Jonathan Cameron ebbdbef28f Input: cyttsp4 - use EXPORT_GPL_RUNTIME_DEV_PM_OPS()
SET_SYSTEM_SLEEP_PM_OPS() and RUNTIME_PM_OPS() are deprecated as
they requires explicit protection against unused function warnings.
The new combination of pm_ptr() EXPORT_GPL_RUNTIME_DEV_PM_OPS()
allows the compiler to see the functions, thus suppressing the
warning, but still allowing the unused code to be
removed. Thus also drop the #ifdef guards.

Note that we are replacing an unconditional call to the suspend
and resume functions for sleep use cases with one via
pm_runtime_force_suspend() / pm_runtime_force_resume() that only
do anything to the device if we are not already in the appropriate
runtime suspended state.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

--

I 'think' this should be fine in that it can only reduce the number
of unnecessary suspends.  If anyone can test that would be great.

Link: https://lore.kernel.org/r/20230114171620.42891-11-jic23@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2023-01-27 14:49:53 -08:00
..
gameport input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
joystick Merge branch 'next' into for-linus 2022-12-12 10:47:03 -08:00
keyboard Input: samsung-keypad - switch to pm_ptr() and SYSTEM_SLEEP/RUNTIME_PM_OPS() 2023-01-27 14:49:52 -08:00
misc Input: adxl34x - unify dev_pm_ops using EXPORT_SIMPLE_DEV_PM_OPS() 2023-01-27 14:49:53 -08:00
mouse Input: cyapa - switch to SYSTEM_SLEEP/RUNTIME_PM_OPS() and pm_ptr() 2023-01-27 14:49:52 -08:00
rmi4 Input: rmi4 - switch to SYSTEM_SLEEP/RUNTIME_PM_OPS() and pm_ptr() 2023-01-27 14:49:52 -08:00
serio Linux 6.2-rc3 2023-01-09 20:28:19 -08:00
tablet input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
touchscreen Input: cyttsp4 - use EXPORT_GPL_RUNTIME_DEV_PM_OPS() 2023-01-27 14:49:53 -08:00
apm-power.c
evbug.c
evdev.c
ff-core.c input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
ff-memless.c input: drop empty comment blocks 2022-09-29 16:25:42 -07:00
input-compat.c
input-compat.h
input-core-private.h Input: deactivate MT slots when inhibiting or suspending devices 2022-07-20 11:35:13 -07:00
input-leds.c
input-mt.c Input: deactivate MT slots when inhibiting or suspending devices 2022-07-20 11:35:13 -07:00
input-poller.c
input-poller.h
input.c Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
joydev.c Input: joydev - fix comment typo 2022-09-25 00:57:25 -07:00
Kconfig
Makefile
matrix-keymap.c
mousedev.c
sparse-keymap.c
touchscreen.c
vivaldi-fmap.c