diff options
author | Antti Palosaari <crope@iki.fi> | 2016-11-07 03:00:45 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-01-31 15:48:55 +0300 |
commit | 675ee801633396389e73dc8a8e148ff3cad1d470 (patch) | |
tree | 19807386109ae53b76e3915bef174d40705308e5 /drivers/media/tuners/it913x.h | |
parent | 3461831adc35959bedf03bbf24678b60f73890b3 (diff) | |
download | linux-675ee801633396389e73dc8a8e148ff3cad1d470.tar.xz |
[media] it913x: change driver model from i2c to platform
That tuner is integrated to demodulator and communicates via
demodulators address space. We cannot register both demodulator
and tuner having same address to same I2C bus, so better to change
it platform driver in order to implement I2C adapter correctly.
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/tuners/it913x.h')
-rw-r--r-- | drivers/media/tuners/it913x.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/drivers/media/tuners/it913x.h b/drivers/media/tuners/it913x.h index e3f1c3959906..9fb8e028176d 100644 --- a/drivers/media/tuners/it913x.h +++ b/drivers/media/tuners/it913x.h @@ -21,30 +21,25 @@ #include "dvb_frontend.h" -/* - * I2C address - * 0x38, 0x3a, 0x3c, 0x3e +/** + * struct it913x_platform_data - Platform data for the it913x driver + * @regmap: af9033 demod driver regmap. + * @dvb_frontend: af9033 demod driver DVB frontend. + * @chip_ver: Used chip version. 1=IT9133 AX, 2=IT9133 BX. + * @role: Chip role, single or dual configuration. */ -struct it913x_config { - /* - * pointer to DVB frontend - */ - struct dvb_frontend *fe; - /* - * chip version - * 1 = IT9135 AX - * 2 = IT9135 BX - */ +struct it913x_platform_data { + struct regmap *regmap; + struct dvb_frontend *fe; unsigned int chip_ver:2; - - /* - * tuner role - */ #define IT913X_ROLE_SINGLE 0 #define IT913X_ROLE_DUAL_MASTER 1 #define IT913X_ROLE_DUAL_SLAVE 2 unsigned int role:2; }; +/* Backwards compatibility */ +#define it913x_config it913x_platform_data + #endif |