From ddd86436f4e3643c04b797f858dab95d5f2e4de9 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Dec 2015 15:00:15 +0000 Subject: fish --- backport-include/uapi/linux/v4l2-mediabus.h | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 backport-include/uapi/linux/v4l2-mediabus.h (limited to 'backport-include/uapi/linux') diff --git a/backport-include/uapi/linux/v4l2-mediabus.h b/backport-include/uapi/linux/v4l2-mediabus.h new file mode 100644 index 0000000..9979c23 --- /dev/null +++ b/backport-include/uapi/linux/v4l2-mediabus.h @@ -0,0 +1,39 @@ +#ifndef __BACKPORT_LINUX_V4L2_MEDIABUS_H +#define __BACKPORT_LINUX_V4L2_MEDIABUS_H +#include + +/* + * SOC_CAMERA is only enabled on 3.4 as it depends on some + * newer regulator functionality, however there are some SOC + * cameras that can rely on the 3.3 regulatory built-in core + * and the 3.3 SOC_CAMERA module however two routines are + * not exported in that version of SOC_CAMERA that newer + * SOC cameras do require. Backport that functionality. + * + * Technically this should go into + * given that is where its where its exported on linux-next + * but in practice only placing it here actually fixes linking + * errors for 3.3 for all SOC camera drivers we make available + * for 3.3. + */ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)) +#if defined(CPTCFG_VIDEO_DEV_MODULE) + +struct soc_camera_subdev_desc; + +#define soc_camera_power_on LINUX_BACKPORT(soc_camera_power_on) +int soc_camera_power_on(struct device *dev, + struct soc_camera_subdev_desc *ssdd); + +#define soc_camera_power_off LINUX_BACKPORT(soc_camera_power_off) +int soc_camera_power_off(struct device *dev, + struct soc_camera_subdev_desc *ssdd); + +#endif /* defined(CPTCFG_VIDEO_DEV_MODULE) */ +#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)) */ +#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0)) */ + +#include_next + +#endif /* __BACKPORT_LINUX_V4L2_MEDIABUS_H */ -- cgit v1.2.3