mbox series

[v2,0/8] pwm: Get rid of pwm_[sg]et_chip_data()

Message ID 20230705080650.2353391-1-u.kleine-koenig@pengutronix.de (mailing list archive)
Headers show
Series pwm: Get rid of pwm_[sg]et_chip_data() | expand

Message

Uwe Kleine-König July 5, 2023, 8:06 a.m. UTC
Hello,

the changes since (implicit) v1 of this series[1] are:

 - Consistently write "per-channel" in the short log.
 - [jz4740] Make use of struct_size(), thanks to Paul Cercueil for
   pointing that out.
 - [cros-ec] Add missing kernel-doc for new struct member, thanks to
   Tzung-Bi Shih for pointing that out.
 - [cros-ec] Make use of devm_kcalloc.
 - [jz4740] Add Reviewed-by tag for Philippe Mathieu-Daudé.
 - [cros-ec] Add Reviewed-by tag for Tzung-Bi Shih.

The first seven patches have no interdependencies, the last depends on
all others.

The sti driver has two problems that are fixed by patch #6. You could
apply it earlier already, but given that the issues are already old
there is IMHO no urge.




[1] https://lore.kernel.org/linux-pwm/20230629094839.757092-1-u.kleine-koenig@pengutronix.de
[2] The newer issue was introduced with e926b12c611c ("pwm: Clear
    chip_data in pwm_put()") for v5.2-rc1 in May 2019.

Uwe Kleine-König (8):
  pwm: berlin: Put per-channel config into driver data
  pwm: samsung: Put per-channel data into driver data
  pwm: jz4740: Put per-channel clk into driver data
  pwm: lp3943: Drop usage of pwm_[gs]et_chip_data()
  pwm: renesas: Drop usage of pwm_[gs]et_chip_data()
  pwm: sti: Reduce number of allocations and drop usage of chip_data
  pwm: cros-ec: Put per-channel data into driver data
  pwm: Drop pwm_[sg]et_chip_data()

 drivers/pwm/core.c            | 31 -----------------------------
 drivers/pwm/pwm-berlin.c      | 37 ++++++-----------------------------
 drivers/pwm/pwm-cros-ec.c     | 33 +++++++++----------------------
 drivers/pwm/pwm-jz4740.c      | 11 +++++++----
 drivers/pwm/pwm-lp3943.c      | 21 +++++++-------------
 drivers/pwm/pwm-renesas-tpu.c | 22 ++++++++++-----------
 drivers/pwm/pwm-samsung.c     | 20 +++++--------------
 drivers/pwm/pwm-sti.c         | 29 +++++++++++++--------------
 include/linux/pwm.h           | 14 -------------
 9 files changed, 59 insertions(+), 159 deletions(-)


base-commit: 92554cdd428fce212d2a71a06939e7cab90f7c77