summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/smiapp/smiapp.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2016-09-07 08:39:52 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-10-21 15:08:13 -0200
commitdf0e40339b48e149f25da9010bc92a39afbf5e66 (patch)
treeb4b171e7761e65457d20be28cbd66063b2c52b49 /drivers/media/i2c/smiapp/smiapp.h
parenta118e61edc3e54bd727a6f6d7193e40270cd3711 (diff)
[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>
Diffstat (limited to 'drivers/media/i2c/smiapp/smiapp.h')
-rw-r--r--drivers/media/i2c/smiapp/smiapp.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/i2c/smiapp/smiapp.h b/drivers/media/i2c/smiapp/smiapp.h
index e71271ef764b..f9febe0a056d 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;