Skip to content

watchdog: Convert to use device managed functions

Guenter Roeck linux-amlogic linux-arm-kernel linux-mediatek linux-mips linux-tegra linux-watchdog lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest62 patches 35 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/62watchdog: asm9260_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/asm9260_wdt.c+13 -240 replies
2/62watchdog: aspeed_wdt: Convert to use device managed functionsdrivers/watchdog/aspeed_wdt.c+1 -131 reply
3/62watchdog: at91sam9_wdt: Convert to use device managed functionsdrivers/watchdog/at91sam9_wdt.c+16 -320 replies
4/62watchdog: atlas7_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/atlas7_wdt.c+12 -310 replies
5/62watchdog: bcm2835_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/bcm2835_wdt.c+8 -191 reply
6/62watchdog: bcm47xx_wdt: Convert to use device managed functionsdrivers/watchdog/bcm47xx_wdt.c+12 -190 replies
7/62watchdog: bcm7038_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/bcm7038_wdt.c+10 -150 replies
8/62watchdog: bcm_kona_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/bcm_kona_wdt.c+4 -100 replies
9/62watchdog: cadence_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/cadence_wdt.c+9 -260 replies
10/62watchdog: coh901327_wdt: Convert to use device managed functionsdrivers/watchdog/coh901327_wdt.c+12 -211 reply
11/62watchdog: da9052_wdt: Convert to use device managed functionsdrivers/watchdog/da9052_wdt.c+8 -241 reply
12/62watchdog: da9055_wdt: Convert to use device managed functionsdrivers/watchdog/da9055_wdt.c+2 -151 reply
13/62watchdog: da9062_wdt: Convert to use device managed functionsdrivers/watchdog/da9062_wdt.c+2 -161 reply
14/62watchdog: da9063_wdt: Convert to use device managed functionsdrivers/watchdog/da9063_wdt.c+1 -171 reply
15/62watchdog: davinci_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/davinci_wdt.c+11 -170 replies
16/62watchdog: digicolor_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/digicolor_wdt.c+12 -361 reply
17/62watchdog: dw_wdt: Convert to use device managed functionsdrivers/watchdog/dw_wdt.c+8 -240 replies
18/62watchdog: ep93xx_wdt: Convert to use device managed functionsdrivers/watchdog/ep93xx_wdt.c+1 -80 replies
19/62watchdog: gpio_wdt: Convert to use device managed functionsdrivers/watchdog/gpio_wdt.c+9 -140 replies
20/62watchdog: iTCO_wdt: Replace shutdown function with call to watchdog_stop_on_rebootdrivers/watchdog/iTCO_wdt.c+1 -81 reply
21/62watchdog: imgpdc_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/imgpdc_wdt.c+15 -270 replies
22/62watchdog: imx2_wdt: Convert to use device managed functionsdrivers/watchdog/imx2_wdt.c+7 -80 replies
23/62watchdog: intel-mid_wdt: Convert to use device managed functionsdrivers/watchdog/intel-mid_wdt.c+1 -101 reply
24/62watchdog: jz4740_wdt: Convert to use device managed functionsdrivers/watchdog/jz4740_wdt.c+6 -160 replies
25/62watchdog: kempld_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/kempld_wdt.c+2 -100 replies
26/62watchdog: loongson1_wdt: Convert to use device managed functionsdrivers/watchdog/loongson1_wdt.c+9 -220 replies
27/62watchdog: lpc18xx_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/lpc18xx_wdt.c+19 -390 replies
28/62watchdog: max63xx_wdt: Convert to use device managed functionsdrivers/watchdog/max63xx_wdt.c+1 -110 replies
29/62watchdog: max77620_wdt: Convert to use device managed functionsdrivers/watchdog/max77620_wdt.c+1 -20 replies
30/62watchdog: mena21_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/mena21_wdt.c+2 -221 reply
31/62watchdog: menf21bmc_wdt: Convert to use device managed functionsdrivers/watchdog/menf21bmc_wdt.c+1 -140 replies
32/62watchdog: meson_gxbb_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/meson_gxbb_wdt.c+10 -282 replies
33/62watchdog: meson_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/meson_wdt.c+2 -211 reply
34/62watchdog: moxart_wdt: Convert to use device managed functionsdrivers/watchdog/moxart_wdt.c+2 -30 replies
35/62watchdog: mpc8xxx_wdt: Convert to use device managed functionsdrivers/watchdog/mpc8xxx_wdt.c+10 -150 replies
36/62watchdog: mt7621_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/mt7621_wdt.c+2 -150 replies
37/62watchdog: mtk_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/mtk_wdt.c+2 -200 replies
38/62watchdog: nic7018_wdt: Convert to use device managed functionsdrivers/watchdog/nic7018_wdt.c+1 -30 replies
39/62watchdog: of_xilinx_wdt: Convert to use device managed functionsdrivers/watchdog/of_xilinx_wdt.c+8 -200 replies
40/62watchdog: omap_wdt: Convert to use device managed functionsdrivers/watchdog/omap_wdt.c+1 -20 replies
41/62watchdog: orion_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/orion_wdt.c+39 -480 replies
42/62watchdog: pic32-dmt: Convert to use device managed functionsdrivers/watchdog/pic32-dmt.c+8 -210 replies
43/62watchdog: pic32-wdt: Convert to use device managed functionsdrivers/watchdog/pic32-wdt.c+9 -250 replies
44/62watchdog: pnx4008_wdt: Convert to use device managed functionsdrivers/watchdog/pnx4008_wdt.c+7 -161 reply
45/62watchdog: qcom-wdt: Convert to use device managed functionsdrivers/watchdog/qcom-wdt.c+8 -190 replies
46/62watchdog: renesas_wdt: Convert to use device managed functionsdrivers/watchdog/renesas_wdt.c+1 -50 replies
47/62watchdog: retu_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/retu_wdt.c+6 -150 replies
48/62watchdog: rt2880_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/rt2880_wdt.c+2 -150 replies
49/62watchdog: sama5d4_wdt: Convert to use device managed functionsdrivers/watchdog/sama5d4_wdt.c+1 -30 replies
50/62watchdog: sbsa_gwdt: Convert to use device managed functions and other improvementsdrivers/watchdog/sbsa_gwdt.c+2 -190 replies
51/62watchdog: shwdt: Convert to use device managed functions and other improvementsdrivers/watchdog/shwdt.c+2 -90 replies
52/62watchdog: sirfsoc_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/sirfsoc_wdt.c+3 -100 replies
53/62watchdog: st_lpc_wdt: Convert to use device managed functionsdrivers/watchdog/st_lpc_wdt.c+6 -50 replies
54/62watchdog: stmp3xxx_rtc_wdt: Convert to use device managed functionsdrivers/watchdog/stmp3xxx_rtc_wdt.c+1 -20 replies
55/62watchdog: sunxi_wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/sunxi_wdt.c+2 -221 reply
56/62watchdog: tangox_wdt: Convert to use device managed functionsdrivers/watchdog/tangox_wdt.c+9 -1317 replies
57/62watchdog: tegra_wdt: Convert to use device managed functionsdrivers/watchdog/tegra_wdt.c+1 -31 reply
58/62watchdog: ts4800_wdt: Convert to use device managed functionsdrivers/watchdog/ts4800_wdt.c+1 -130 replies
59/62watchdog: twl4030_wdt: Convert to use device managed functionsdrivers/watchdog/twl4030_wdt.c+1 -160 replies
60/62watchdog: txx9wdt: Convert to use device managed functions and other improvementsdrivers/watchdog/txx9wdt.c+16 -300 replies
61/62watchdog: ux500_wdt: Convert to use device managed functionsdrivers/watchdog/ux500_wdt.c+1 -90 replies
62/62watchdog: wm831x_wdt: Convert to use device managed functionsdrivers/watchdog/wm831x_wdt.c+7 -241 reply

Reviews trailers per patch

17 of 62 patches have a Reviewed-by or Acked-by.

PatchJoel StanleyNeil ArmstrongMaxime RipardLinus WalleijKevin HilmanAndy ShevchenkoVladimir ZapolskiyCharles KeepaxBaruch SiachJohannes ThumshirnEric AnholtAdam ThomsonThierry Reding
1/62
2/62A-b
3/62
4/62
5/62A-b
6/62
7/62
8/62
9/62
10/62R-b
11/62A-b
12/62A-b
13/62A-b
14/62A-b
15/62
16/62A-b T-b
17/62
18/62
19/62
20/62R-b
21/62
22/62
23/62R-b
24/62
25/62
26/62
27/62
28/62
29/62
30/62A-b
31/62
32/62A-b A-b
33/62A-b
34/62
35/62
36/62
37/62
38/62
39/62
40/62
41/62
42/62
43/62
44/62A-b
45/62
46/62
47/62
48/62
49/62
50/62
51/62
52/62
53/62
54/62
55/62A-b
56/62
57/62A-b
58/62
59/62
60/62
61/62
62/62A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 13 reviewers.

Read the v1 thread

Cover letter [PATCH 00/62] watchdog: Convert to use device managed functions

Use device managed functions to simplify error handling, reduce source code size, improve readability, and reduce the likelyhood of bugs.

The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at
https://github.com/groeck/coccinelle-patches.

To reproduce this series of patches, checkout the tree above, then run the following commands from the Linux source tree.

sh ~coccinelle-patches/watchdog/make.sh
sh ~coccinelle-patches/watchdog/do-commit.sh

The patch series is based on the following tree and branch.

git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
watchdog-next

----------------------------------------------------------------
Guenter Roeck (62):
watchdog: asm9260_wdt: Convert to use device managed functions and other improvements
watchdog: aspeed_wdt: Convert to use device managed functions
watchdog: at91sam9_wdt: Convert to use device managed functions
watchdog: atlas7_wdt: Convert to use device managed functions and other improvements
watchdog: bcm2835_wdt: Convert to use device managed functions and other improvements
watchdog: bcm47xx_wdt: Convert to use device managed functions
watchdog: bcm7038_wdt: Convert to use device managed functions and other improvements
watchdog: bcm_kona_wdt: Convert to use device managed functions and other improvements
watchdog: cadence_wdt: Convert to use device managed functions and other improvements
watchdog: coh901327_wdt: Convert to use device managed functions
watchdog: da9052_wdt: Convert to use device managed functions
watchdog: da9055_wdt: Convert to use device managed functions
watchdog: da9062_wdt: Convert to use device managed functions
watchdog: da9063_wdt: Convert to use device managed functions
watchdog: davinci_wdt: Convert to use device managed functions and other improvements
watchdog: digicolor_wdt: Convert to use device managed functions and other improvements
watchdog: dw_wdt: Convert to use device managed functions
watchdog: ep93xx_wdt: Convert to use device managed functions
watchdog: gpio_wdt: Convert to use device managed functions
watchdog: iTCO_wdt: Replace shutdown function with call to watchdog_stop_on_reboot
watchdog: imgpdc_wdt: Convert to use device managed functions and other improvements
watchdog: imx2_wdt: Convert to use device managed functions
watchdog: intel-mid_wdt: Convert to use device managed functions
watchdog: jz4740_wdt: Convert to use device managed functions
watchdog: kempld_wdt: Convert to use device managed functions and other improvements
watchdog: loongson1_wdt: Convert to use device managed functions
watchdog: lpc18xx_wdt: Convert to use device managed functions and other improvements
watchdog: max63xx_wdt: Convert to use device managed functions
watchdog: max77620_wdt: Convert to use device managed functions
watchdog: mena21_wdt: Convert to use device managed functions and other improvements
watchdog: menf21bmc_wdt: Convert to use device managed functions
watchdog: meson_gxbb_wdt: Convert to use device managed functions and other improvements
watchdog: meson_wdt: Convert to use device managed functions and other improvements
watchdog: moxart_wdt: Convert to use device managed functions
watchdog: mpc8xxx_wdt: Convert to use device managed functions
watchdog: mt7621_wdt: Convert to use device managed functions and other improvements
watchdog: mtk_wdt: Convert to use device managed functions and other improvements
watchdog: nic7018_wdt: Convert to use device managed functions
watchdog: of_xilinx_wdt: Convert to use device managed functions
watchdog: omap_wdt: Convert to use device managed functions
watchdog: orion_wdt: Convert to use device managed functions and other improvements
watchdog: pic32-dmt: Convert to use device managed functions
watchdog: pic32-wdt: Convert to use device managed functions
watchdog: pnx4008_wdt: Convert to use device managed functions
watchdog: qcom-wdt: Convert to use device managed functions
watchdog: renesas_wdt: Convert to use device managed functions
watchdog: retu_wdt: Convert to use device managed functions and other improvements
watchdog: rt2880_wdt: Convert to use device managed functions and other improvements
watchdog: sama5d4_wdt: Convert to use device managed functions
watchdog: sbsa_gwdt: Convert to use device managed functions and other improvements
watchdog: shwdt: Convert to use device managed functions and other improvements
watchdog: sirfsoc_wdt: Convert to use device managed functions and other improvements
watchdog: st_lpc_wdt: Convert to use device managed functions
watchdog: stmp3xxx_rtc_wdt: Convert to use device managed functions
watchdog: sunxi_wdt: Convert to use device managed functions and other improvements
watchdog: tangox_wdt: Convert to use device managed functions
watchdog: tegra_wdt: Convert to use device managed functions
watchdog: ts4800_wdt: Convert to use device managed functions
watchdog: twl4030_wdt: Convert to use device managed functions
watchdog: txx9wdt: Convert to use device managed functions and other improvements
watchdog: ux500_wdt: Convert to use device managed functions
watchdog: wm831x_wdt: Convert to use device managed functions

 drivers/watchdog/asm9260_wdt.c      | 37 ++++++----------
 drivers/watchdog/aspeed_wdt.c       | 14 +-----
 drivers/watchdog/at91sam9_wdt.c     | 48 +++++++-------------
 drivers/watchdog/atlas7_wdt.c       | 43 +++++-------------
 drivers/watchdog/bcm2835_wdt.c      | 27 ++++--------
 drivers/watchdog/bcm47xx_wdt.c      | 31 +++++--------
 drivers/watchdog/bcm7038_wdt.c      | 25 +++++------
 drivers/watchdog/bcm_kona_wdt.c     | 14 ++----
 drivers/watchdog/cadence_wdt.c      | 35 ++++-----------
 drivers/watchdog/coh901327_wdt.c    | 33 +++++---------
 drivers/watchdog/da9052_wdt.c       | 32 ++++----------
 drivers/watchdog/da9055_wdt.c       | 17 +-------
 drivers/watchdog/da9062_wdt.c       | 18 +-------
 drivers/watchdog/da9063_wdt.c       | 18 +-------
 drivers/watchdog/davinci_wdt.c      | 28 +++++-------
 drivers/watchdog/digicolor_wdt.c    | 48 +++++---------------
 drivers/watchdog/dw_wdt.c           | 32 ++++----------
 drivers/watchdog/ep93xx_wdt.c       |  9 +---
 drivers/watchdog/gpio_wdt.c         | 23 ++++------
 drivers/watchdog/iTCO_wdt.c         |  9 +---
 drivers/watchdog/imgpdc_wdt.c       | 42 +++++++-----------
 drivers/watchdog/imx2_wdt.c         | 15 +++----
 drivers/watchdog/intel-mid_wdt.c    | 11 +----
 drivers/watchdog/jz4740_wdt.c       | 22 +++-------
 drivers/watchdog/kempld_wdt.c       | 12 +----
 drivers/watchdog/loongson1_wdt.c    | 31 ++++---------
 drivers/watchdog/lpc18xx_wdt.c      | 58 ++++++++-----------------
 drivers/watchdog/max63xx_wdt.c      | 12 +----
 drivers/watchdog/max77620_wdt.c     |  3 +-
 drivers/watchdog/mena21_wdt.c       | 24 +---------
 drivers/watchdog/menf21bmc_wdt.c    | 15 +------
 drivers/watchdog/meson_gxbb_wdt.c   | 38 +++++-----------
 drivers/watchdog/meson_wdt.c        | 23 +---------
 drivers/watchdog/moxart_wdt.c       |  5 +--
 drivers/watchdog/mpc8xxx_wdt.c      | 25 +++++------
 drivers/watchdog/mt7621_wdt.c       | 17 +-------
 drivers/watchdog/mtk_wdt.c          | 22 +---------
 drivers/watchdog/nic7018_wdt.c      |  4 +-
 drivers/watchdog/of_xilinx_wdt.c    | 28 ++++--------
 drivers/watchdog/omap_wdt.c         |  3 +-
 drivers/watchdog/orion_wdt.c        | 87 +++++++++++++++++--------------------
 drivers/watchdog/pic32-dmt.c        | 29 ++++---------
 drivers/watchdog/pic32-wdt.c        | 34 ++++-----------
 drivers/watchdog/pnx4008_wdt.c      | 23 +++-------
 drivers/watchdog/qcom-wdt.c         | 27 ++++--------
 drivers/watchdog/renesas_wdt.c      |  6 +--
 drivers/watchdog/retu_wdt.c         | 21 +++------
 drivers/watchdog/rt2880_wdt.c       | 17 +-------
 drivers/watchdog/sama5d4_wdt.c      |  4 +-
 drivers/watchdog/sbsa_gwdt.c        | 21 +--------
 drivers/watchdog/shwdt.c            | 11 +----
 drivers/watchdog/sirfsoc_wdt.c      | 13 ++----
 drivers/watchdog/st_lpc_wdt.c       | 11 ++---
 drivers/watchdog/stmp3xxx_rtc_wdt.c |  3 +-
 drivers/watchdog/sunxi_wdt.c        | 24 +---------
 drivers/watchdog/tangox_wdt.c       | 22 ++++------
 drivers/watchdog/tegra_wdt.c        |  4 +-
 drivers/watchdog/ts4800_wdt.c       | 14 +-----
 drivers/watchdog/twl4030_wdt.c      | 17 +-------
 drivers/watchdog/txx9wdt.c          | 46 +++++++-------------
 drivers/watchdog/ux500_wdt.c        | 10 +----
 drivers/watchdog/wm831x_wdt.c       | 31 +++----------
 62 files changed, 387 insertions(+), 1039 deletions(-)