aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-frontends/tc90522.h
diff options
context:
space:
mode:
authorAkihiro Tsukada <tskd08@gmail.com>2019-08-29 05:38:21 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-10-07 07:50:41 -0300
commitecf20d28ff7730d8d446c989eb1cf641ec6e28ce (patch)
tree9407cc36efd4906c4cff3ea93fe9028ec48c94f3 /drivers/media/dvb-frontends/tc90522.h
parent25877478c444f0f97ef78af0e7399333bb36b496 (diff)
downloadlinux-ecf20d28ff7730d8d446c989eb1cf641ec6e28ce.tar.gz
media: dvb-frontends/tc90522: extend i2c algo to support some devices
This demod implements an i2c adapter for attached tuner and relays i2c messages from users (dvb adapters / bridge chips). Some of them, such as Friio dvb card using gl861, require each pair of i2c messages for one read to be issued as two separate transactions. This patch adds a configuration option to enable this split. Signed-off-by: Akihiro Tsukada <tskd08@gmail.com> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/dvb-frontends/tc90522.h')
-rw-r--r--drivers/media/dvb-frontends/tc90522.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb-frontends/tc90522.h b/drivers/media/dvb-frontends/tc90522.h
index ac0e2ab51924..07e3813bf590 100644
--- a/drivers/media/dvb-frontends/tc90522.h
+++ b/drivers/media/dvb-frontends/tc90522.h
@@ -28,6 +28,9 @@ struct tc90522_config {
/* [OUT] tuner I2C adapter returned by driver */
struct i2c_adapter *tuner_i2c;
+
+ /* [IN] use two separate I2C transactions for one tuner read */
+ bool split_tuner_read_i2c;
};
#endif /* TC90522_H */