linux/drivers/media/usb/go7007
Ricardo Ribalda 707928b9f6 media: go7007: Use min and max macros
Replace ternary inline selection of f1 and f2 min max values with min()
and max() helper functions for the sake of readability and to make
coccinelle happier

drivers/media/usb/go7007/go7007-fw.c:1292:14-15: WARNING opportunity for max()
drivers/media/usb/go7007/go7007-fw.c:1293:14-15: WARNING opportunity for min()

Link: https://lore.kernel.org/linux-media/20240429-fix-cocci-v3-5-3c4865f5a4b0@chromium.org
Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2024-05-03 11:06:27 +01:00
..
go7007-driver.c media: go7007: fix a memleak in go7007_load_encoder 2024-02-28 16:00:33 +01:00
go7007-fw.c media: go7007: Use min and max macros 2024-05-03 11:06:27 +01:00
go7007-i2c.c media: go7007: Remove redundant if statement 2023-08-10 07:58:32 +02:00
go7007-loader.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
go7007-priv.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
go7007-usb.c media: go7007: add check of return value of go7007_read_addr() 2024-02-16 11:46:33 +01:00
go7007-v4l2.c media: go7007: don't modify q->streaming 2023-02-06 09:01:05 +01:00
Kconfig media: v4l: Use correct dependency for camera sensor drivers 2023-09-14 12:38:17 +02:00
Makefile media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00
s2250-board.c media: Switch i2c drivers back to use .probe() 2023-05-25 16:21:21 +02:00
snd-go7007.c media: go7007: Constify static struct snd_device_ops 2022-02-22 09:41:11 +01:00