diff options
| author | Ricardo Ribalda <ribalda@chromium.org> | 2025-06-16 15:29:17 +0000 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2025-07-03 11:02:43 +0200 |
| commit | 3a905e52c97ba79b7d9abf22005bab55c12eb620 (patch) | |
| tree | d35afd99056bc8a33571c7e9c75bca6fe4f3df57 /scripts/gdb/linux/stackdepot.py | |
| parent | 417c01b92ec278a1118a05c6ad8a796eaa0c9c52 (diff) | |
media: venus: venc: Make the range of us_per_frame explicit
Fps bigger than 0.000232829 fps, this fits in a 32 bit us_per_frame.
There is no need to do a 64 bit division here.
Also, the driver only works with whole fps.
Found with cocci:
drivers/media/platform/qcom/venus/venc.c:418:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead.
Reviewed-by: Vikash Garodia <quic_vgarodia@quicinc.com>
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Bryan O'Donoghue <bod@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'scripts/gdb/linux/stackdepot.py')
0 files changed, 0 insertions, 0 deletions
