summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/si2157_priv.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-01 12:15:22 +0200
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-17 19:16:19 +0200
commit552b926fa3b1671b3d3937641f0f5585e6659866 (patch)
treefabfe21a88329a56097993df0d3233bfd29ea9ad /drivers/media/tuners/si2157_priv.h
parentmedia: tvp5150: declare its own pads (diff)
downloadlinux-552b926fa3b1671b3d3937641f0f5585e6659866.tar.xz
linux-552b926fa3b1671b3d3937641f0f5585e6659866.zip
media: si2157: declare its own pads
As we don't need anymore to share pad numbers with similar drivers, use its own pad definition instead of a global model. Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/tuners/si2157_priv.h')
-rw-r--r--drivers/media/tuners/si2157_priv.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/tuners/si2157_priv.h b/drivers/media/tuners/si2157_priv.h
index e6436f74abaa..50f86300d965 100644
--- a/drivers/media/tuners/si2157_priv.h
+++ b/drivers/media/tuners/si2157_priv.h
@@ -21,6 +21,13 @@
#include <media/v4l2-mc.h>
#include "si2157.h"
+enum si2157_pads {
+ SI2157_PAD_RF_INPUT,
+ SI2157_PAD_VID_OUT,
+ SI2157_PAD_AUD_OUT,
+ SI2157_NUM_PADS
+};
+
/* state struct */
struct si2157_dev {
struct mutex i2c_mutex;
@@ -35,7 +42,7 @@ struct si2157_dev {
#if defined(CONFIG_MEDIA_CONTROLLER)
struct media_device *mdev;
struct media_entity ent;
- struct media_pad pad[TUNER_NUM_PADS];
+ struct media_pad pad[SI2157_NUM_PADS];
#endif
};