mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
Merge "msm: camera: cci: Fix cam_cci_get_subdev for conditional compilation" into camera-kernel.lnx.1.0
This commit is contained in:
commit
59f2100a95
2 changed files with 10 additions and 10 deletions
|
|
@ -14,9 +14,16 @@ static struct v4l2_subdev *g_cci_subdev[MAX_CCI];
|
|||
|
||||
struct v4l2_subdev *cam_cci_get_subdev(int cci_dev_index)
|
||||
{
|
||||
struct v4l2_subdev *sub_device = NULL;
|
||||
|
||||
if (cci_dev_index < MAX_CCI)
|
||||
return g_cci_subdev[cci_dev_index];
|
||||
return NULL;
|
||||
sub_device = g_cci_subdev[cci_dev_index];
|
||||
else
|
||||
CAM_WARN(CAM_CCI, "Index: %u is beyond max num CCI allowed: %u",
|
||||
cci_dev_index,
|
||||
MAX_CCI);
|
||||
|
||||
return sub_device;
|
||||
}
|
||||
|
||||
static long cam_cci_subdev_ioctl(struct v4l2_subdev *sd,
|
||||
|
|
|
|||
|
|
@ -295,14 +295,7 @@ struct cci_write_async {
|
|||
|
||||
irqreturn_t cam_cci_irq(int irq_num, void *data);
|
||||
|
||||
#ifdef CONFIG_SPECTRA_CAMERA
|
||||
extern struct v4l2_subdev *cam_cci_get_subdev(int cci_dev_index);
|
||||
#else
|
||||
static inline struct v4l2_subdev *cam_cci_get_subdev(int cci_dev_index)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
struct v4l2_subdev *cam_cci_get_subdev(int cci_dev_index);
|
||||
|
||||
#define VIDIOC_MSM_CCI_CFG \
|
||||
_IOWR('V', BASE_VIDIOC_PRIVATE + 23, struct cam_cci_ctrl *)
|
||||
|
|
|
|||
Loading…
Reference in a new issue