Commit df0e4033 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarSebastian Reichel <sre@kernel.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a118e61e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;