zephyr/drivers
Simon Guinot a4645908ee drivers: led_pwm: fix overflow in set_brightness
The set_brightness function of the led_pwm driver uses a default PWM
period (defined in the pwms DT property) to compute a pulse passed to
the pwm_set_pulse_dt function. If this default period is greater than
2^32/100 nanoseconds (about 43 milliseconds) then the calculation may
overflow.

This patch prevents this overflow by running the pulse computation under
a cast with a larger type (uint64_t).

Reported-by: Scott Worley <scott.worley@microchip.com>
Signed-off-by: Simon Guinot <simon.guinot@seagate.com>
2023-07-18 10:45:05 +00:00
..
adc drivers: adc: Update ADC driver for STM32WBA series 2023-07-12 11:48:10 +02:00
audio sys/util: extend usage of DIV_ROUND_UP 2023-04-12 16:42:29 +02:00
auxdisplay drivers: auxdisplay: Add driver for PTC PT6314 VFD controller 2023-07-14 12:09:03 +02:00
bbram device: remove redundant init functions 2023-04-19 10:00:25 +02:00
bluetooth drivers: bluetooth: hci: spi: add small read delay 2023-07-05 14:15:18 +02:00
cache drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
can drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
clock_control drivers: clock_control: stm32h5: boot_clock_assert_fix 2023-07-12 21:11:00 +02:00
console drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
coredump drivers: kconfig: unify menuconfig title strings 2023-03-28 15:06:06 +02:00
counter drivers: counter: stm32wba: Avoid warning at build 2023-07-12 11:48:10 +02:00
crypto drivers/crypto/it8xxx2: add support for SHA256 hardware accelerator 2023-07-07 09:24:47 +02:00
dac drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
dai intel_adsp: restructure dmic headers and move regs to soc 2023-06-23 14:27:44 -04:00
disk drivers: disk: sdmmc_stm32 support for clock divisor 2023-04-12 17:44:48 +02:00
display display SDL: Split in top and bottom 2023-07-06 16:04:15 +02:00
dma drivers: dma_mcux_lpc: Add Kconfig to reduce data 2023-07-17 13:06:01 -05:00
edac shell: fix MISRA 5.7 violations on struct shell 2023-04-14 12:21:08 +02:00
eeprom drivers for POSIX arch: Add external libc dependencies 2023-07-05 07:01:19 -04:00
entropy drivers: entropy native: Refactor to support embedded libCs 2023-07-07 14:32:41 +02:00
espi emul: Only add enabled DT nodes to bus emulators 2023-07-12 09:25:18 +02:00
ethernet drivers: eth_smsc91x: Implement promiscuous mode 2023-07-10 15:14:33 +02:00
flash drivers: flash: nrf_qspi_nor: Fix writing from unaligned RAM buffers 2023-07-13 12:09:02 +02:00
fpga drivers: spi: make SPI dt-spec macros compatible with C++ 2023-04-24 21:29:55 +02:00
fuel_gauge drivers: fuel_gauge: max17048: Remov unused var 2023-07-13 09:21:52 +02:00
gpio drivers: gpio: gpio_npm1300: Added reset and power loss modes 2023-07-12 14:36:56 +02:00
hwinfo drivers: hwinfo: andes: Improve hwinfo_andes driver 2023-07-17 13:19:37 +00:00
i2c drivers: i2c: add error handling 2023-07-13 09:23:39 +02:00
i2s drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
i3c drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
ieee802154 drivers: ieee802154: nrf5: Add transmission with multiple CCA 2023-07-14 09:46:36 -04:00
input input: convert gt911 from kscan 2023-07-13 14:24:50 +00:00
interrupt_controller doc: Drop asterisk from Doxygen @param 2023-07-13 13:25:28 +00:00
ipm inte_adsp: ipc: prevent ipc message send during Device power transition 2023-06-22 06:14:57 -04:00
kscan input: convert gt911 from kscan 2023-07-13 14:24:50 +00:00
led drivers: led_pwm: fix overflow in set_brightness 2023-07-18 10:45:05 +00:00
led_strip drivers: led_strip: apa102: add multi instances support 2023-05-31 10:23:22 +01:00
lora drivers: lora: shell: fix invalid range in config bw param 2023-05-25 08:22:08 +00:00
mbox drivers: mbox: initialize before ipc 2023-07-12 11:48:19 +02:00
mdio drivers: mdio: adin2111: correct prompt 2023-06-16 05:42:36 -04:00
memc drivers: memc: add update clock function 2023-05-22 10:15:03 +02:00
mfd drivers: mfd: mfd_npm1300: Added timer configuration function 2023-07-12 14:36:56 +02:00
mipi_dsi drivers: mipi: delay initialization after display drivers 2023-07-08 12:39:53 -04:00
misc drivers: misc: Add driver for RaspberryPi Pico PIO 2023-04-25 13:12:02 +02:00
mm drivers: mm: Fix macro call in RAT driver 2023-07-14 09:37:53 +02:00
modem doc: Drop asterisk from Doxygen @param 2023-07-13 13:25:28 +00:00
net drivers/gsm_ppp: Update existing modules to use PPP L2 2023-06-17 07:46:21 -04:00
neural_net xtensa: use sys_cache API instead of custom interfaces 2023-04-26 07:31:22 -04:00
pcie drivers: pcie: initialize after interrupt controllers 2023-07-12 09:25:35 +02:00
peci drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
pinctrl pinctrl: rv32m1: delay init priority after the clock controller 2023-07-14 16:48:52 +00:00
pm_cpu_ops arm64: implement arch_system_halt 2022-11-23 11:37:08 +01:00
power_domain device: make device dependencies optional 2023-06-21 09:32:05 +02:00
ps2 drivers: ps2: microchip: Low power and wakeup enabled 2023-06-17 07:59:07 -04:00
ptp_clock drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
pwm drivers: pwm: pwm_nrfx: Revert workaround for stopping PWM instance 2023-07-13 13:21:41 +02:00
regulator regulator: shell: fix unitialized variable warning from SCA 2023-07-07 10:51:53 +02:00
reset drivers: reset: kconfig: Change default init priority to 35 from 40 2023-07-17 10:47:11 +00:00
retained_mem drivers: retained_mem: Allow disabling mutex support 2023-07-12 11:51:30 +02:00
rtc driver: rtc: rtc_emul: remove redundant brackets 2023-07-12 09:26:16 +02:00
sdhc drivers: sdhc: add support for using CPOL/CPHA SPI clock modes 2023-04-26 20:07:53 +02:00
sensor drivers/sensor: check xyz_mem_bank_set() ret value 2023-07-18 09:54:44 +00:00
serial drivers: uart: Add support for UART_NS16550 TI K3 variant 2023-07-14 09:37:44 +02:00
sip_svc subsystem: sip_svc: Add ARM SiP SVC subsystem 2023-05-09 08:46:50 -04:00
smbus drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
spi emul: Only add enabled DT nodes to bus emulators 2023-07-12 09:25:18 +02:00
syscon drivers: kconfig: unify menuconfig title strings 2023-03-28 15:06:06 +02:00
timer drivers: timers: Add LPTIM support for STM32WBA 2023-07-12 11:48:10 +02:00
usb drivers: usb: udc: add STM32 UDC driver 2023-07-13 10:44:42 +02:00
usb_c drivers: usb-c: fix - check if adc_channel is ready before use 2023-07-17 10:16:22 +00:00
video video: mt9m114: YUV pixel format support 2023-05-19 15:45:50 +02:00
virtualization drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
w1 drivers: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
watchdog drivers: watchdog: npm1300: Added watchdog driver 2023-07-12 14:36:56 +02:00
wifi net: wifi: Move Wi-Fi ops to a separate struct 2023-07-11 14:55:30 +02:00
xen barriers: Move __DMB() to the new API 2023-05-24 13:13:57 -04:00
CMakeLists.txt entropy: use CONFIG_ENTROPY_GENERATOR to guard cmake include... 2023-06-17 07:57:45 -04:00
Kconfig arch: x86: updated acpi config macro 2023-06-30 17:53:01 +03:00