aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/test-drivers/vimc/vimc-sensor.c
diff options
context:
space:
mode:
authorArnd Bergmann <[email protected]>2020-04-28 21:34:19 +0000
committerMauro Carvalho Chehab <[email protected]>2020-05-05 15:24:35 +0000
commit6c8d0cdd6ccb21badd52a10d627f80cf1a6ab63f (patch)
tree3da7108ac72d487a8c8afa8c6bda77798f1f86de /drivers/media/test-drivers/vimc/vimc-sensor.c
parentmedia: staging: media: usbvision: usbvision-core Correct spelling (diff)
downloadkernel-6c8d0cdd6ccb21badd52a10d627f80cf1a6ab63f.tar.gz
kernel-6c8d0cdd6ccb21badd52a10d627f80cf1a6ab63f.zip
media: ti-vpe: avoid gcc-9 warning
gcc warns about empty array declarations, which we get in this driver when compile-testing without CONFIG_OF: drivers/media/platform/ti-vpe/cal.c:2194:34: warning: array 'cal_of_match' assumed to have one element 2194 | static const struct of_device_id cal_of_match[]; Since all users of this driver do need CONFIG_OF anyway, there is no point in making the array definition conditional to save space, so just remove the #ifdef and move the array up a little. Fixes: 343e89a792a5 ("[media] media: ti-vpe: Add CAL v4l2 camera capture driver") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Benoit Parrot <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/test-drivers/vimc/vimc-sensor.c')
0 files changed, 0 insertions, 0 deletions