diff options
author | Matthias Schwarzott <zzam@gentoo.org> | 2016-07-26 09:09:02 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-09-22 17:54:00 +0200 |
commit | 7cd785adc4ea4a4f19477a10ea8485aa4bc0d0b1 (patch) | |
tree | f8520143054c21d0b1bda7f776077bd59cdb5dce /drivers/media/dvb-frontends/si2165.h | |
parent | [media] si2165: avoid division by zero (diff) | |
download | linux-7cd785adc4ea4a4f19477a10ea8485aa4bc0d0b1.tar.xz linux-7cd785adc4ea4a4f19477a10ea8485aa4bc0d0b1.zip |
[media] si2165: support i2c_client attach
Afterwards it is possible to convert attaching in card drivers.
Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/dvb-frontends/si2165.h')
-rw-r--r-- | drivers/media/dvb-frontends/si2165.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/si2165.h b/drivers/media/dvb-frontends/si2165.h index 8a15d6a9c552..abbebc9edf0c 100644 --- a/drivers/media/dvb-frontends/si2165.h +++ b/drivers/media/dvb-frontends/si2165.h @@ -28,6 +28,28 @@ enum { SI2165_MODE_PLL_XTAL = 0x21 }; +/* I2C addresses + * possible values: 0x64,0x65,0x66,0x67 + */ +struct si2165_platform_data { + /* + * frontend + * returned by driver + */ + struct dvb_frontend **fe; + + /* external clock or XTAL */ + u8 chip_mode; + + /* frequency of external clock or xtal in Hz + * possible values: 4000000, 16000000, 20000000, 240000000, 27000000 + */ + u32 ref_freq_Hz; + + /* invert the spectrum */ + bool inversion; +}; + struct si2165_config { /* i2c addr * possible values: 0x64,0x65,0x66,0x67 */ |