1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/media/pci/mgb4
Ricardo Ribalda ff924ca08e media: pci: mgb4: Refactor struct resources
The struct resource end field signifies the end address not the
relative offset from the start field i.e size == (end - start) + 1.

Amend the .end field to specify the end address not the relative size
from the offset as is currently given.

Fixes cocci check:
drivers/media/pci/mgb4/mgb4_regs.c:13:22-25: WARNING: Suspicious code. resource_size is maybe missing with res

Link: https://lore.kernel.org/linux-media/20240429-fix-cocci-v3-1-3c4865f5a4b0@chromium.org
Reviewed-by: Martin Tůma <martin.tuma@digiteqautomotive.com>
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:02:04 +01:00
..
Kconfig media: pci: mgb4: add COMMON_CLK dependency 2023-11-16 13:59:31 +01:00
Makefile media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_cmt.c media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_cmt.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_core.c media: pci: mgb4: Refactor struct resources 2024-05-03 11:02:04 +01:00
mgb4_core.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_dma.c media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_dma.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_i2c.c media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_i2c.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_io.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_regs.c media: pci: mgb4: Refactor struct resources 2024-05-03 11:02:04 +01:00
mgb4_regs.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_sysfs.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_sysfs_in.c media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_sysfs_out.c media: pci: mgb4: fix potential spectre vulnerability 2023-10-13 11:33:22 +02:00
mgb4_sysfs_pci.c media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_trigger.c media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_trigger.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_vin.c media: videobuf2: core: Rename min_buffers_needed field in vb2_queue 2023-12-13 17:31:27 +01:00
mgb4_vin.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00
mgb4_vout.c media: videobuf2: core: Rename min_buffers_needed field in vb2_queue 2023-12-13 17:31:27 +01:00
mgb4_vout.h media: pci: mgb4: Added Digiteq Automotive MGB4 driver 2023-10-07 10:51:58 +02:00