summaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/soc_camera
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2015-02-25 14:39:11 -0500
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-19 15:34:59 -0400
commit97bbdf02d905a0a48cb3c953ea352d7f4994643c (patch)
tree26db56922fdc77e5991f976e574354cb97e34bc1 /drivers/media/platform/soc_camera
parente07a41f985898b9dae97c99bbb5d3d415b9ecd6c (diff)
downloadblackbird-obmc-linux-97bbdf02d905a0a48cb3c953ea352d7f4994643c.tar.gz
blackbird-obmc-linux-97bbdf02d905a0a48cb3c953ea352d7f4994643c.zip
media: v4l: Add support for CSI-1 and CCP2 busses
CCP2 and CSI-1, are older single data lane serial busses. [mchehab@s-opensource.com: don't use spaces for identation] Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Pavel Machek <pavel@ucw.cz> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/soc_camera')
-rw-r--r--drivers/media/platform/soc_camera/soc_mediabus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/platform/soc_camera/soc_mediabus.c b/drivers/media/platform/soc_camera/soc_mediabus.c
index 57581f626f4c..43192d80beef 100644
--- a/drivers/media/platform/soc_camera/soc_mediabus.c
+++ b/drivers/media/platform/soc_camera/soc_mediabus.c
@@ -508,6 +508,9 @@ unsigned int soc_mbus_config_compatible(const struct v4l2_mbus_config *cfg,
mipi_clock = common_flags & (V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK |
V4L2_MBUS_CSI2_CONTINUOUS_CLOCK);
return (!mipi_lanes || !mipi_clock) ? 0 : common_flags;
+ default:
+ __WARN();
+ return -EINVAL;
}
return 0;
}
OpenPOWER on IntegriCloud