From: Sakari Ailus <sakari.ailus@linux.intel.com> Date: Wed, 7 Sep 2016 11:39:52 +0000 (-0300) Subject: [media] smiapp: Use SMIAPP_PADS when referring to number of pads X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=df0e40339b48e149f25da9010bc92a39afbf5e66;p=linux.git [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: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> --- diff --git a/drivers/media/i2c/smiapp/smiapp.h b/drivers/media/i2c/smiapp/smiapp.h index e71271ef764be..f9febe0a056dc 100644 --- a/drivers/media/i2c/smiapp/smiapp.h +++ b/drivers/media/i2c/smiapp/smiapp.h @@ -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;