android_kernel_motorola_sm6375/drivers/pwm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Heiner Kallweit 6296287380 pwm: meson: fix handling of period/duty if greater than UINT_MAX
[ Upstream commit 87a2cbf02d7701255f9fcca7e5bd864a7bb397cf ]

state->period/duty are of type u64, and if their value is greater than
UINT_MAX, then the cast to uint will cause problems. Fix this by
changing the type of the respective local variables to u64.

Fixes: b79c3670e1 ("pwm: meson: Don't duplicate the polarity internally")
Cc: [email protected]
Suggested-by: Uwe Kleine-König <[email protected]>
Reviewed-by: Martin Blumenstingl <[email protected]>
Signed-off-by: Heiner Kallweit <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2023-08-11 11:53:46 +02:00
..
core.c
Kconfig
Makefile
pwm-ab8500.c
pwm-atmel-hlcdc.c
pwm-atmel-tcb.c
pwm-atmel.c
pwm-bcm-iproc.c
pwm-bcm-kona.c
pwm-bcm2835.c
pwm-berlin.c
pwm-brcmstb.c
pwm-clps711x.c
pwm-crc.c
pwm-cros-ec.c pwm: cros-ec: Explicitly set .polarity in .get_state() 2023-04-20 12:07:33 +02:00
pwm-ep93xx.c
pwm-fsl-ftm.c
pwm-hibvt.c
pwm-img.c
pwm-imx-tpm.c pwm: imx-tpm: force 'real_period' to be zero in suspend 2023-07-27 08:37:22 +02:00
pwm-imx1.c
pwm-imx27.c
pwm-jz4740.c
pwm-lp3943.c
pwm-lpc18xx-sct.c
pwm-lpc32xx.c
pwm-lpss-pci.c
pwm-lpss-platform.c
pwm-lpss.c
pwm-lpss.h
pwm-mediatek.c
pwm-meson.c pwm: meson: fix handling of period/duty if greater than UINT_MAX 2023-08-11 11:53:46 +02:00
pwm-mtk-disp.c pwm: mtk-disp: Disable shadow registers before setting backlight values 2023-05-17 11:35:53 +02:00
pwm-mxs.c
pwm-omap-dmtimer.c
pwm-pca9685.c
pwm-puv3.c
pwm-pxa.c
pwm-rcar.c
pwm-renesas-tpu.c
pwm-rockchip.c
pwm-samsung.c
pwm-sifive.c pwm: sifive: Always let the first pwm_apply_state succeed 2023-03-11 16:44:08 +01:00
pwm-spear.c
pwm-sprd.c pwm: sprd: Explicitly set .polarity in .get_state() 2023-04-20 12:07:33 +02:00
pwm-sti.c
pwm-stm32-lp.c pwm: stm32-lp: fix the check on arr and cmp registers update 2023-03-11 16:44:08 +01:00
pwm-stm32.c
pwm-stmpe.c
pwm-sun4i.c
pwm-tegra.c
pwm-tiecap.c
pwm-tiehrpwm.c
pwm-tipwmss.c
pwm-twl-led.c
pwm-twl.c
pwm-vt8500.c
pwm-zx.c
sysfs.c pwm: sysfs: Do not apply state to already disabled PWMs 2023-07-27 08:37:22 +02:00