Skip to content

Input: Switch to new PM macros set 3

Jonathan Cameron linux-input 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest16 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16Input: cyapa - switch to SYSTEM_SLEEP/RUNTIME_PM_OPS() and pm_ptr()drivers/input/mouse/cyapa.c+7 -70 replies
2/16Input: axp20x-pek - switch to SYSTEM_SLEEP_PM_OPS() and pm_sleep_ptr()drivers/input/misc/axp20x-pek.c+5 -70 replies
3/16Input: samsung-keypad - switch to pm_ptr() and SYSTEM_SLEEP/RUNTIME_PM_OPS()drivers/input/keyboard/samsung-keypad.c+4 -80 replies
4/16Input: s6sy761 - switch to SYSTEM_SLEEP_/RUNTIME_PM_OPS() and pm_ptr()drivers/input/touchscreen/s6sy761.c+7 -81 reply
5/16Input: rmi4 - switch to SYSTEM_SLEEP/RUNTIME_PM_OPS() and pm_ptr()drivers/input/rmi4/rmi_i2c.c drivers/input/rmi4/rmi_smbus.c drivers/input/rmi4/rmi_spi.c+13 -240 replies
6/16Input: stmfts - switch to SYSTEM_SLEEP_/RUNTIME_PM_OPS() and pm_ptr()drivers/input/touchscreen/stmfts.c+7 -70 replies
7/16Input: ad714x - unify dev_pm_ops using EXPORT_SIMPLE_DEV_PM_OPS()drivers/input/misc/ad714x-i2c.c drivers/input/misc/ad714x-spi.c drivers/input/misc/ad714x.c +1 more+10 -340 replies
8/16Input: adxl34x - unify dev_pm_ops using EXPORT_SIMPLE_DEV_PM_OPS()drivers/input/misc/adxl34x-i2c.c drivers/input/misc/adxl34x-spi.c drivers/input/misc/adxl34x.c +1 more+16 -540 replies
9/16Input: tsc200x - use EXPORT_GPL_SIMPLE_DEV_PM_OPS()drivers/input/touchscreen/tsc2004.c drivers/input/touchscreen/tsc2005.c drivers/input/touchscreen/tsc200x-core.c+5 -60 replies
10/16Input: cyttsp4 - use EXPORT_GPL_RUNTIME_DEV_PM_OPS()drivers/input/touchscreen/cyttsp4_core.c drivers/input/touchscreen/cyttsp4_i2c.c drivers/input/touchscreen/cyttsp4_spi.c+4 -90 replies
11/16Input: cyttsp - use EXPORT_GPL_SIMPLE_DEV_PM_OPS()drivers/input/touchscreen/cyttsp_core.c drivers/input/touchscreen/cyttsp_i2c.c drivers/input/touchscreen/cyttsp_spi.c+5 -60 replies
12/16Input: applespi - use pm_sleep_ptr() and SYSTEM_SLEEP_PM_OPS()drivers/input/keyboard/applespi.c+5 -50 replies
13/16Input: omap4-keyad - use pm_ptr() and RUNTIME_DEV_PM_OPS()drivers/input/keyboard/omap4-keypad.c+3 -30 replies
14/16Input: Use pm_sleep_ptr() to avoid need for ifdef CONFIG_PM_SLEEPdrivers/input/input.c+2 -50 replies
15/16Input: cma3000 - use pm_sleep_ptr() to allow removal of ifdef CONFIG_PM guardsdrivers/input/misc/cma3000_d0x_i2c.c+1 -50 replies
16/16Input: wistron_btns - use pm_sleep_ptr() to allow removal of ifdef CONFIG_PM guardsdrivers/input/misc/wistron_btns.c+1 -50 replies

Reviews trailers per patch

None of the 16 patches has a Reviewed-by or Acked-by.

PatchCaleb Connolly
1/16
2/16
3/16
4/16T-b
5/16
6/16
7/16
8/16
9/16
10/16
11/16
12/16
13/16
14/16
15/16
16/16

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/16] Input: Switch to new PM macros set 3

From: Jonathan Cameron <[email protected]>

Continuation of
https://lore.kernel.org/all/[email protected]/

This time we have most of the remaining drivers where the changes needed are more complex than the earlier straight conversions.

A separate series will deal with pm80x as the cleanup for that will extend to MFD and RTC trees and cannot easily be broken up due to some changes in exports.

There is a general mixture of cases in here:
1) More complex direct conversions - typically drivers with separate sleep and runtime pm ops.
2) Cases where the callbacks or struct dev_pm_ops is exported to multiple modules.
3) Refactors that avoid duplication of callbacks or exports.
4) A tweak to the core input handling to use the new macros - this is different from the driver changes, but seemed sensible.

Note there are a few cases in here where I a much more minimal set of callbacks is provided than DEFINE_SIMPLE_DEV_PM_OPS() and friends would set. I don't know the history behind those so whilst they might well be fine converted to the generic macros, I've left them alone.

Cc Hans de Goede <[email protected]>
Cc Caleb Connolly <[email protected]>
Cc Andi Shyti <[email protected]>
Cc Matthias Schiffer <[email protected]>
Cc Lyude Paul <[email protected]>
Cc Andrew Duggan <[email protected]>
Cc Michael Hennerich <[email protected]>
Cc Javier Martinez Canillas <[email protected]>
Cc Linus Walleij <[email protected]>

Jonathan Cameron (16):
Input: cyapa - switch to SYSTEM_SLEEP/RUNTIME_PM_OPS() and pm_ptr()
Input: axp20x-pek - switch to SYSTEM_SLEEP_PM_OPS() and pm_sleep_ptr()
Input: samsung-keypad - switch to pm_ptr() and
SYSTEM_SLEEP/RUNTIME_PM_OPS()
Input: s6sy761 - switch to SYSTEM_SLEEP_/RUNTIME_PM_OPS() and pm_ptr()
Input: rmi4 - switch to SYSTEM_SLEEP/RUNTIME_PM_OPS() and pm_ptr()
Input: stmfts - switch to SYSTEM_SLEEP_/RUNTIME_PM_OPS() and pm_ptr()
Input: ad714x - unify dev_pm_ops using EXPORT_SIMPLE_DEV_PM_OPS()
Input: adxl34x - unify dev_pm_ops using EXPORT_SIMPLE_DEV_PM_OPS()
Input: tsc200x - use EXPORT_GPL_SIMPLE_DEV_PM_OPS()
Input: cyttsp4 - use EXPORT_GPL_RUNTIME_DEV_PM_OPS()
Input: cyttsp - use EXPORT_GPL_SIMPLE_DEV_PM_OPS()
Input: applespi - use pm_sleep_ptr() and SYSTEM_SLEEP_PM_OPS()
Input: omap4-keyad - use pm_ptr() and RUNTIME_DEV_PM_OPS()
Input: Use pm_sleep_ptr() to avoid need for ifdef CONFIG_PM_SLEEP
Input: cma3000 - use pm_sleep_ptr() to allow removal of ifdef
CONFIG_PM guards
Input: wistron_btns - use pm_sleep_ptr() to allow removal of ifdef
CONFIG_PM guards

 drivers/input/input.c                    |  7 ++-----
 drivers/input/keyboard/applespi.c        | 10 +++++-----
 drivers/input/keyboard/omap4-keypad.c    |  6 +++---
 drivers/input/keyboard/samsung-keypad.c  | 12 ++++--------
 drivers/input/misc/ad714x-i2c.c          | 14 +------------
 drivers/input/misc/ad714x-spi.c          | 14 +------------
 drivers/input/misc/ad714x.c              | 12 ++++++------
 drivers/input/misc/ad714x.h              |  4 ++--
 drivers/input/misc/adxl34x-i2c.c         | 25 +-----------------------
 drivers/input/misc/adxl34x-spi.c         | 25 +-----------------------
 drivers/input/misc/adxl34x.c             | 16 +++++++++++----
 drivers/input/misc/adxl34x.h             |  4 ++--
 drivers/input/misc/axp20x-pek.c          | 12 +++++-------
 drivers/input/misc/cma3000_d0x_i2c.c     |  6 +-----
 drivers/input/misc/wistron_btns.c        |  6 +-----
 drivers/input/mouse/cyapa.c              | 14 ++++++-------
 drivers/input/rmi4/rmi_i2c.c             | 11 +++--------
 drivers/input/rmi4/rmi_smbus.c           | 15 +++++++-------
 drivers/input/rmi4/rmi_spi.c             | 11 +++--------
 drivers/input/touchscreen/cyttsp4_core.c |  9 ++-------
 drivers/input/touchscreen/cyttsp4_i2c.c  |  2 +-
 drivers/input/touchscreen/cyttsp4_spi.c  |  2 +-
 drivers/input/touchscreen/cyttsp_core.c  |  7 +++----
 drivers/input/touchscreen/cyttsp_i2c.c   |  2 +-
 drivers/input/touchscreen/cyttsp_spi.c   |  2 +-
 drivers/input/touchscreen/s6sy761.c      | 15 +++++++-------
 drivers/input/touchscreen/stmfts.c       | 14 ++++++-------
 drivers/input/touchscreen/tsc2004.c      |  2 +-
 drivers/input/touchscreen/tsc2005.c      |  2 +-
 drivers/input/touchscreen/tsc200x-core.c |  7 +++----
 30 files changed, 95 insertions(+), 193 deletions(-)
Signature · 1 line
2.39.0