Skip to content

pwm: stm32: Minor cleanups

Thierry Reding linux-pwm 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesIn review
  2. v13 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3pwm: stm32: Remove clutter from ternary operatordrivers/pwm/pwm-stm32.c include/linux/mfd/stm32-timers.h+13 -203 replies
2/3pwm: stm32: Pass breakinput instead of its valuesdrivers/pwm/pwm-stm32.c+8 -111 reply
3/3pwm: stm32: Validate breakinput data from DTdrivers/pwm/pwm-stm32.c+8 -03 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchUwe Kleine-KönigLee Jones
1/3A-b
2/3A-b
3/3

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/3] pwm: stm32: Minor cleanups

Hi,

Looking at Fabrice's STM32 patches I noticed that we're now passing the breakinput values (u32) into a function via int parameters. The easiest way to fix this inconsistency is by just passing a pointer to the break input structure. There's some preparatory work here that makes the code slightly more readable, in my opinion. I ended up squashing two patches into one in v2 because the second patch from v1 is already addressed in patch 1 of v2. I've added a patch in v2 that validates device tree data for breakinput as suggested by Uwe.

Lee, patch 1 of this small series touches the MFD header for the STM32 timers, but there's no good way to separate the patches, so if you could provide an Acked-by on that patch so that I can take it through the PWM tree along with the rest, that'd be great.

Thierry

Thierry Reding (3):
pwm: stm32: Remove clutter from ternary operator
pwm: stm32: Pass breakinput instead of its values
pwm: stm32: Validate breakinput data from DT

 drivers/pwm/pwm-stm32.c          | 36 +++++++++++++++++---------------
 include/linux/mfd/stm32-timers.h | 12 ++++-------
 2 files changed, 23 insertions(+), 25 deletions(-)
Signature · 1 line
2.23.0