diff options
author | Antti Palosaari <crope@iki.fi> | 2015-07-26 17:30:07 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-02-03 06:44:03 -0200 |
commit | 433c4864977a943eabea737f2f0894430795eca3 (patch) | |
tree | c286ceb23d6285f781caf5e49fa8daa163307dcf /drivers/media/tuners/mt2060.h | |
parent | 59e8b7aa931c8a82afad9f5868e4872f14c44cc7 (diff) | |
download | lwn-433c4864977a943eabea737f2f0894430795eca3.tar.gz lwn-433c4864977a943eabea737f2f0894430795eca3.zip |
[media] mt2060: add param to split long i2c writes
Add configuration parameter to split long i2c writes as some I2C
adapters cannot write 10 bytes used as a one go.
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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/tuners/mt2060.h b/drivers/media/tuners/mt2060.h index 41feb2c1d2cd..cc534eb41378 100644 --- a/drivers/media/tuners/mt2060.h +++ b/drivers/media/tuners/mt2060.h @@ -30,12 +30,15 @@ struct i2c_adapter; * 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. + * @i2c_write_max: Maximum number of bytes I2C adapter can write at once. + * 0 defaults to maximum. * @dvb_frontend: DVB frontend. */ struct mt2060_platform_data { u8 clock_out; u16 if1; + unsigned int i2c_write_max:5; struct dvb_frontend *dvb_frontend; }; |