[<prev] [next>] [day] [month] [year] [list]
Message-ID: <87wq1ou6m0.wl%kuninori.morimoto.gx@renesas.com>
Date: Tue, 7 Apr 2015 00:26:36 +0000
From: Kuninori Morimoto <kuninori.morimoto.gx@...esas.com>
To: Guennadi Liakhovetski <g.liakhovetski@....de>,
Mauro Carvalho Chehab <mchehab@....samsung.com>,
Mauro Carvalho Chehab <mchehab@...hat.com>
CC: <ryusuke.sakato.bx@...esas.com>,
<yoshihiro.shimoda.uh@...esas.com>,
<hiroyuki.yokoyama.vx@...esas.com>,
<takeshi.kihara.df@...esas.com>, <linux-media@...r.kernel.org>,
<linux-kernel@...r.kernel.org>
Subject: Question about switch() of soc_mbus_config_compatible()
Hi Mauro, Guennadi
I would like to ask you about switch() of
linux/drivers/media/platform/soc_camera/soc_mediabus.c :: soc_mbus_config_compatible
unsigned int soc_mbus_config_compatible(const struct v4l2_mbus_config *cfg,
unsigned int flags)
{
...
switch (cfg->type) {
case V4L2_MBUS_PARALLEL:
hsync = common_flags & (V4L2_MBUS_HSYNC_ACTIVE_HIGH |
V4L2_MBUS_HSYNC_ACTIVE_LOW);
vsync = common_flags & (V4L2_MBUS_VSYNC_ACTIVE_HIGH |
=> V4L2_MBUS_VSYNC_ACTIVE_LOW);
case V4L2_MBUS_BT656:
pclk = common_flags & (V4L2_MBUS_PCLK_SAMPLE_RISING |
V4L2_MBUS_PCLK_SAMPLE_FALLING);
data = common_flags & (V4L2_MBUS_DATA_ACTIVE_HIGH |
V4L2_MBUS_DATA_ACTIVE_LOW);
mode = common_flags & (V4L2_MBUS_MASTER | V4L2_MBUS_SLAVE);
return (!hsync || !vsync || !pclk || !data || !mode) ?
0 : common_flags;
...
}
Here, there is no break, no return, no /* FALL THROUGH */
It is very confusable, but what is this intention ?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists