zephyr/subsys/usb/device/class
Keith Packard abac6ccfaf subsys/usb: Fix use of 'abs' in computing when to report on_idle
idle_rate is uint8_t, sof_cnt is uint32_t. The result is uint32_t, which
is the wrong type for 'abs'. Explicitly cast idle_rate to uint32_t,
subtract sof_cnt and then explicitly cast to int32_t and then use abs,
storing the result in another int32_t which matches the return type for
abs.

This quiets clang warnings about passing unsigned values to abs.

Signed-off-by: Keith Packard <keithp@keithp.com>
2022-06-14 01:50:36 +09:00
..
audio subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
dfu usb: dfu: Enable progressive erase for MCUX FlexSPI flash 2022-05-09 08:54:30 -05:00
hid subsys/usb: Fix use of 'abs' in computing when to report on_idle 2022-06-14 01:50:36 +09:00
netusb subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
bluetooth.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
bt_h4.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
cdc_acm.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
CMakeLists.txt
Kconfig
Kconfig.bt
Kconfig.cdc
Kconfig.msc
Kconfig.template.composite_device_number
Kconfig.test
loopback.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
msc.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00