summaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/mt2060.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2015-07-26 18:45:05 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-02-03 06:16:18 -0200
commit59e8b7aa931c8a82afad9f5868e4872f14c44cc7 (patch)
treed8ca01e544acbc1e6e624c2527e0d4d601fdf99e /drivers/media/tuners/mt2060.h
parentf57e9618738da2ec562adf2dc312070b7b9a0dec (diff)
downloadlinux-stable-59e8b7aa931c8a82afad9f5868e4872f14c44cc7.tar.gz
linux-stable-59e8b7aa931c8a82afad9f5868e4872f14c44cc7.tar.bz2
linux-stable-59e8b7aa931c8a82afad9f5868e4872f14c44cc7.zip
[media] mt2060: add i2c bindings
Add proper i2c driver model bindings. Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/tuners/mt2060.h')
-rw-r--r--drivers/media/tuners/mt2060.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/drivers/media/tuners/mt2060.h b/drivers/media/tuners/mt2060.h
index 0ef460146c13..41feb2c1d2cd 100644
--- a/drivers/media/tuners/mt2060.h
+++ b/drivers/media/tuners/mt2060.h
@@ -21,6 +21,26 @@
struct dvb_frontend;
struct i2c_adapter;
+/*
+ * I2C address
+ * 0x60, ...
+ */
+
+/**
+ * struct mt2060_platform_data - Platform data for the mt2060 driver
+ * @clock_out: Clock output setting. 0 = off, 1 = CLK/4, 2 = CLK/2, 3 = CLK/1.
+ * @if1: First IF used [MHz]. 0 defaults to 1220.
+ * @dvb_frontend: DVB frontend.
+ */
+
+struct mt2060_platform_data {
+ u8 clock_out;
+ u16 if1;
+ struct dvb_frontend *dvb_frontend;
+};
+
+
+/* configuration struct for mt2060_attach() */
struct mt2060_config {
u8 i2c_address;
u8 clock_out; /* 0 = off, 1 = CLK/4, 2 = CLK/2, 3 = CLK/1 */