diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-12-16 17:15:05 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2020-01-03 17:52:36 +0300 |
commit | 9983b2daf1ca4602c32e38a4ef98a6a2b1156b90 (patch) | |
tree | 018b66622e91aeebdf0dcbad3ddefef0039864a3 /drivers/media/usb/dvb-usb | |
parent | 577c89b0ce726e44c08c396d14f84a00070a57b7 (diff) | |
download | linux-9983b2daf1ca4602c32e38a4ef98a6a2b1156b90.tar.xz |
media: v4l2-core: fix compat VIDIOC_DQEVENT for time64 ABI
The native code supports the variant of struct v4l2_event for 64-bit
time_t, so add the compat version as well.
Here, a new incompatibility arises: while almost all 32-bit architectures
now use the same layout as 64-bit architectures and the commands can
simply be passed through, on x86 the internal alignment of v4l2_event
is different because of the 64-bit member in v4l2_event_ctrl.
To handle all architectures, this now requires defining four different
versions of the structure to cover all possible combinations. The compat
handling for VIDIOC_DQEVENT32 and VIDIOC_DQEVENT32_TIME32 is now inside
of an #ifdef so it does not get used on architectures other than x86.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/usb/dvb-usb')
0 files changed, 0 insertions, 0 deletions