Tag: bbfe0f37aee52d39999d5e475e1172a58f958a82

irda: irda-usb: use msecs_to_jiffies for conversions

Author: Nicholas Mc Guire <hofrat@osadl.org> API compliance scanning with coccinelle flagged: Converting milliseconds to jiffies by “val * HZ / 1000” is technically is not a clean solution as it does not handle all corner cases correctly. By changing the conversion to use msecs_to_jiffies(val) conversion is correct in all cases. in the current code: mod_timer(&self->rx_defer_timer, …

Continue reading