pwm: stm32: Validate breakinput data from DT
authorThierry Reding <thierry.reding@gmail.com>
Wed, 16 Oct 2019 10:06:31 +0000 (12:06 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 21 Oct 2019 14:50:04 +0000 (16:50 +0200)
commit8dfa620e3d70d3eceff59943b29257949505dd33
tree2eb94c0dbfbf141de0e73299cd8252e16739bfed
parent27938fd8ba78b4c7f9a2385b7b52cca19ab891b8
pwm: stm32: Validate breakinput data from DT

Both index and level can only be either 0 or 1 and the filter value is
limited to values between (and including) 0 and 15. Validate that the
device tree node contains values that are within these ranges.

Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-stm32.c