]> www.infradead.org Git - users/jedix/linux-maple.git/commit
media: dvb-frontends: tda10048: Make the range of z explicit.
authorRicardo Ribalda <ribalda@chromium.org>
Sat, 11 Jan 2025 09:55:14 +0000 (09:55 +0000)
committerHans Verkuil <hverkuil@xs4all.nl>
Thu, 6 Mar 2025 16:28:30 +0000 (17:28 +0100)
commit466b7053cb88586a84228bb0800921279d8748cb
tree51b4c61d126b1d2f56ae31569353fafce9dd947c
parentf883f34b6a46b1a09d44d7f94c3cd72fe0e8f93b
media: dvb-frontends: tda10048: Make the range of z explicit.

The datasheet recommends 55MHz frequency sampling, with a max of 69 MHz.
(Kudos to Kosta Stefanov for the calculations).

Replace z with a 32 bit uint, and make the range of the variable
explicit.

Found by cocci:
drivers/media/dvb-frontends/tda10048.c:345:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_u64 instead.

Reviewed-by: Kosta Stefanov <costa.stephanoff@gmail.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
drivers/media/dvb-frontends/tda10048.c