Skip to content

Input: Automated coccinelle cleanup (take 2)

Guenter Roeck linux-arm-kernel linux-input linux-samsung-soc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13Input: keyboard - Drop calls to platform_set_drvdata and i2c_set_clientdatadrivers/input/keyboard/adc-keys.c drivers/input/keyboard/cap11xx.c drivers/input/keyboard/gpio_keys_polled.c +5 more+0 -120 replies
2/13Input: misc - Drop calls to platform_set_drvdata and i2c_set_clientdatadrivers/input/misc/arizona-haptics.c drivers/input/misc/atmel_captouch.c drivers/input/misc/da9063_onkey.c +2 more+0 -60 replies
3/13Input: touchscreen - Drop calls to platform_set_drvdata and i2c_set_clientdatadrivers/input/touchscreen/88pm860x-ts.c drivers/input/touchscreen/colibri-vf50-ts.c drivers/input/touchscreen/egalax_ts.c +2 more+0 -80 replies
4/13Input: keyboard - Use local variables consistentlydrivers/input/keyboard/davinci_keyscan.c drivers/input/keyboard/gpio_keys.c drivers/input/keyboard/gpio_keys_polled.c +1 more+25 -273 replies
5/13Input: misc - Use local variables consistentlydrivers/input/misc/drv260x.c drivers/input/misc/gpio_tilt_polled.c drivers/input/misc/hisi_powerkey.c+6 -70 replies
6/13Input: mouse Use local variables consistentlydrivers/input/mouse/alps.c drivers/input/mouse/bcm5974.c drivers/input/mouse/cyapa.c +6 more+31 -420 replies
7/13Input: rmi4 - Use local variables consistentlydrivers/input/rmi4/rmi_bus.c drivers/input/rmi4/rmi_driver.c+4 -40 replies
8/13Input: touchscreen - Use local variables consistentlydrivers/input/touchscreen/atmel_mxt_ts.c drivers/input/touchscreen/fsl-imx25-tcq.c drivers/input/touchscreen/ili210x.c +3 more+7 -80 replies
9/13Input: keyboard - drop unnecessary calls to device_init_wakeupdrivers/input/keyboard/gpio_keys.c drivers/input/keyboard/matrix_keypad.c drivers/input/keyboard/omap4-keypad.c +2 more+0 -110 replies
10/13Input: misc - drop unnecessary calls to device_init_wakeupdrivers/input/misc/88pm80x_onkey.c drivers/input/misc/e3x0-button.c drivers/input/misc/gp2ap002a00f.c +4 more+0 -110 replies
11/13Input: touchscreen - drop unnecessary calls to device_init_wakeupdrivers/input/touchscreen/ads7846.c drivers/input/touchscreen/bu21013_ts.c drivers/input/touchscreen/eeti_ts.c +2 more+0 -70 replies
12/13Input: serio - drop unnecessary calls to device_init_wakeupdrivers/input/serio/hyperv-keyboard.c+0 -10 replies
13/13Input: misc - drop empty remove functionsdrivers/input/misc/e3x0-button.c drivers/input/misc/hisi_powerkey.c drivers/input/misc/pmic8xxx-pwrkey.c +2 more+0 -300 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] Input: Automated coccinelle cleanup (take 2)

This patch series is the result of applying a set of coccinelle semantic patches to the input subsystem. The patches are only cleanup patches; there is little or no change in functionality.

This time around, the patches are combined into groups instead of per-file. Each patch has only a single coccinelle rule applied, and only affects a single directory in the input subsystem.

As with the previous patch series, removed calls to platform_set_drvdata() and i2c_set_clientdata() deserve extra scrutiny from reviewers.

The conversion was done automatically with coccinelle using various semantic patches. The semantic patches and the scripts used to generate this commit log are either attached to the commits, or they are available at
https://github.com/groeck/coccinelle-patches.

The series was build tested on kerneltests.org and by the 0day build system.

The patch series is based on v4.10-rc4, with input/next (sha 72d1f2346ded5) merged on top. For convenience, the series is available at:
git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git input-base

----------------------------------------------------------------
Guenter Roeck (13):
Input: keyboard - Drop calls to platform_set_drvdata and i2c_set_clientdata
Input: misc - Drop calls to platform_set_drvdata and i2c_set_clientdata
Input: touchscreen - Drop calls to platform_set_drvdata and i2c_set_clientdata
Input: keyboard - Use local variables consistently
Input: misc - Use local variables consistently
Input: mouse Use local variables consistently
Input: rmi4 - Use local variables consistently
Input: touchscreen - Use local variables consistently
Input: keyboard - drop unnecessary calls to device_init_wakeup
Input: misc - drop unnecessary calls to device_init_wakeup
Input: touchscreen - drop unnecessary calls to device_init_wakeup
Input: serio - drop unnecessary calls to device_init_wakeup
Input: misc - drop empty remove functions

 drivers/input/keyboard/adc-keys.c           |  2 --
 drivers/input/keyboard/cap11xx.c            |  1 -
 drivers/input/keyboard/davinci_keyscan.c    |  4 +--
 drivers/input/keyboard/gpio_keys.c          | 26 +++++++---------
 drivers/input/keyboard/gpio_keys_polled.c   |  7 ++---
 drivers/input/keyboard/jornada680_kbd.c     |  2 --
 drivers/input/keyboard/matrix_keypad.c      |  2 --
 drivers/input/keyboard/max7359_keypad.c     |  1 -
 drivers/input/keyboard/mpr121_touchkey.c    | 18 +++++------
 drivers/input/keyboard/nspire-keypad.c      |  2 --
 drivers/input/keyboard/omap4-keypad.c       |  3 --
 drivers/input/keyboard/opencores-kbd.c      |  2 --
 drivers/input/keyboard/samsung-keypad.c     |  2 --
 drivers/input/keyboard/spear-keyboard.c     |  2 --
 drivers/input/keyboard/sun4i-lradc-keys.c   |  1 -
 drivers/input/misc/88pm80x_onkey.c          |  1 -
 drivers/input/misc/arizona-haptics.c        |  2 --
 drivers/input/misc/atmel_captouch.c         |  1 -
 drivers/input/misc/da9063_onkey.c           |  1 -
 drivers/input/misc/drv260x.c                |  2 +-
 drivers/input/misc/e3x0-button.c            |  8 -----
 drivers/input/misc/gp2ap002a00f.c           |  2 --
 drivers/input/misc/gpio_tilt_polled.c       |  2 +-
 drivers/input/misc/hisi_powerkey.c          | 17 +++--------
 drivers/input/misc/pm8941-pwrkey.c          |  1 -
 drivers/input/misc/pmic8xxx-pwrkey.c        |  8 -----
 drivers/input/misc/retu-pwrbutton.c         |  6 ----
 drivers/input/misc/sirfsoc-onkey.c          |  8 -----
 drivers/input/misc/twl4030-pwrbutton.c      |  1 -
 drivers/input/mouse/alps.c                  |  2 +-
 drivers/input/mouse/bcm5974.c               |  2 +-
 drivers/input/mouse/cyapa.c                 |  6 ++--
 drivers/input/mouse/cypress_ps2.c           |  4 +--
 drivers/input/mouse/elan_i2c_core.c         | 46 +++++++++++------------------
 drivers/input/mouse/elantech.c              |  2 +-
 drivers/input/mouse/hgpk.c                  |  5 ++--
 drivers/input/mouse/logips2pp.c             |  2 +-
 drivers/input/mouse/trackpoint.c            |  4 +--
 drivers/input/rmi4/rmi_bus.c                |  4 +--
 drivers/input/rmi4/rmi_driver.c             |  4 +--
 drivers/input/serio/hyperv-keyboard.c       |  1 -
 drivers/input/touchscreen/88pm860x-ts.c     |  3 --
 drivers/input/touchscreen/ads7846.c         |  2 --
 drivers/input/touchscreen/atmel_mxt_ts.c    |  2 +-
 drivers/input/touchscreen/bu21013_ts.c      |  2 --
 drivers/input/touchscreen/colibri-vf50-ts.c |  2 --
 drivers/input/touchscreen/eeti_ts.c         |  1 -
 drivers/input/touchscreen/egalax_ts.c       |  1 -
 drivers/input/touchscreen/fsl-imx25-tcq.c   |  2 +-
 drivers/input/touchscreen/ili210x.c         |  2 +-
 drivers/input/touchscreen/lpc32xx_ts.c      |  1 -
 drivers/input/touchscreen/max11801_ts.c     |  1 -
 drivers/input/touchscreen/pixcir_i2c_ts.c   |  4 +--
 drivers/input/touchscreen/rohm_bu21023.c    |  3 +-
 drivers/input/touchscreen/s3c2410_ts.c      |  2 +-
 drivers/input/touchscreen/st1232.c          |  1 -
 drivers/input/touchscreen/sx8654.c          |  1 -
 57 files changed, 73 insertions(+), 174 deletions(-)