mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 09:11:26 +03:00
media: camera: Fix build for Linux v5.16+
Building the Tegra camera drivers with Linux v5.16+ kernels fail because the driver does not use the correct kernel version for handling various API changes in upstream. Update ther kernel version appropriately so that the camera drivers can build with Linux v5.16+ kernels. Change-Id: I4c110d12f554fd4aa757a1aa9a42a81be5a87ae6 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2831219 Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
891c93a8fb
commit
c86c642f5b
@@ -940,7 +940,7 @@ int camera_common_get_mbus_config(struct v4l2_subdev *sd,
|
||||
* then return an error
|
||||
*/
|
||||
cfg->type = V4L2_MBUS_CSI2_DPHY;
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 0, 0)
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 18, 0)
|
||||
cfg->flags = V4L2_MBUS_CSI2_4_LANE |
|
||||
V4L2_MBUS_CSI2_CHANNEL_0 |
|
||||
V4L2_MBUS_CSI2_CONTINUOUS_CLOCK;
|
||||
|
||||
Reference in New Issue
Block a user