media: v4l2-core: guard code against ABI breakage

Guard the code against ABI breakage using IS_ENABLED Helper macro.
Guarded code will be compiled when config is set to m or y.

CRs-Fixed: 2579332
Change-Id: Ic1a5ab22c8ced2c7b527bf5086c2c7b14fe24919
Signed-off-by: himta ram <[email protected]>
This commit is contained in:
himta ram 2019-12-03 14:45:03 +05:30 • committed by Gerrit - the friendly Code Review server
commit b6f9c071a2
2 changed files with 2 additions and 2 deletions

View file

@ -345,7 +345,7 @@ struct v4l2_ioctl_ops {
struct v4l2_format *f);
int (*vidioc_g_fmt_meta_out)(struct file *file, void *fh,
struct v4l2_format *f);
#ifdef CONFIG_I2C_RTC6226_QCA
#if IS_ENABLED(CONFIG_I2C_RTC6226_QCA)
int (*vidioc_g_fmt_type_private)(struct file *file, void *fh,
struct v4l2_format *f);
#endif