Skip to content

hwmon: (sch56xx) Use devres for watchdog and platform_device_register_simple()

[email protected] linux-hwmon 2 versions – Applied

Status from this message: Applied, with cosmetic change.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 5 repliesApplied
  2. v14 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- drop sch5627_remove()
- make sch56xx_watchdog_register() return void

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4hwmon: (sch56xx) Use devres functions for watchdogdrivers/hwmon/sch5627.c drivers/hwmon/sch5636.c drivers/hwmon/sch56xx-common.c +1 more+17 -421 reply
2/4hwmon: (sch56xx-common) Use strscpydrivers/hwmon/sch56xx-common.c+1 -21 reply
3/4hwmon: (sch56xx-common) Use helper functiondrivers/hwmon/sch56xx-common.c+3 -41 reply
4/4hwmon: (sch56xx-common) Simplify sch56xx_device_adddrivers/hwmon/sch56xx-common.c+4 -231 reply

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchHans de Goede
SeriesR-b
1/4
2/4
3/4
4/4

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

Read the v2 thread

Cover letter [PATCH v2 0/4] hwmon: (sch56xx) Use devres for watchdog and platform_device_register_simple()

From: Armin Wolf <[email protected]>

Since it was requested to use devres for the watchdog device, use devm_watchdog_register() for watchdog registration and do some small cleanups.

Also use platform_device_register_simple() in sch56xx_device_add().

Tested on a Fujitsu Esprimo P720.

v2:
- drop sch5627_remove()
- make sch56xx_watchdog_register() return void

Armin Wolf (4):
hwmon: (sch56xx) Use devres functions for watchdog
hwmon: (sch56xx-common) Use strscpy
hwmon: (sch56xx-common) Use helper function
hwmon: (sch56xx-common) Simplify sch56xx_device_add

 drivers/hwmon/sch5627.c        | 18 ++--------
 drivers/hwmon/sch5636.c        |  9 ++---
 drivers/hwmon/sch56xx-common.c | 65 ++++++++++------------------------
 drivers/hwmon/sch56xx-common.h |  4 +--
 4 files changed, 25 insertions(+), 71 deletions(-)

--
2.20.1