zephyr/subsys/usb/device
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
..
class subsys/usb: Fix use of 'abs' in computing when to report on_idle 2022-06-14 01:50:36 +09:00
bos.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
CMakeLists.txt
Kconfig
os_desc.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
os_desc.h
usb_descriptor.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
usb_descriptor.h
usb_device.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
usb_transfer.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
usb_transfer.h
usb_work_q.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
usb_work_q.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00