提交 df0e4033 编写于 作者: S Sakari Ailus 提交者: Mauro Carvalho Chehab

[media] smiapp: Use SMIAPP_PADS when referring to number of pads

Replace plain value 2 with SMIAPP_PADS when referring to the number of
pads.
Signed-off-by: NSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: NSebastian Reichel <sre@kernel.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 a118e61e
......@@ -157,9 +157,9 @@ struct smiapp_binning_subtype {
struct smiapp_subdev {
struct v4l2_subdev sd;
struct media_pad pads[2];
struct media_pad pads[SMIAPP_PADS];
struct v4l2_rect sink_fmt;
struct v4l2_rect crop[2];
struct v4l2_rect crop[SMIAPP_PADS];
struct v4l2_rect compose; /* compose on sink */
unsigned short sink_pad;
unsigned short source_pad;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册