summaryrefslogtreecommitdiff
path: root/linux/drivers/media/common/tuners/tuner-i2c.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2008-05-27 16:02:56 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-05-27 16:02:56 -0300
commit207a3ddc145923e40cc3d7d1bc7d4d96671fa67e (patch)
treee14f659f98f0acba3b3c087fabadbe11a43718b4 /linux/drivers/media/common/tuners/tuner-i2c.h
parent78993359ab9b30ba9f34ee66e78f5d07cef503d5 (diff)
parent97c17a1efdc9111329274fd12ec9faa213b166af (diff)
downloadmediapointer-dvb-s2-207a3ddc145923e40cc3d7d1bc7d4d96671fa67e.tar.gz
mediapointer-dvb-s2-207a3ddc145923e40cc3d7d1bc7d4d96671fa67e.tar.bz2
merge: http://linuxtv.org/hg/~mkrufky/xc-instance
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/common/tuners/tuner-i2c.h')
-rw-r--r--linux/drivers/media/common/tuners/tuner-i2c.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/linux/drivers/media/common/tuners/tuner-i2c.h b/linux/drivers/media/common/tuners/tuner-i2c.h
index 3ad6c8e0b..cb1c7141f 100644
--- a/linux/drivers/media/common/tuners/tuner-i2c.h
+++ b/linux/drivers/media/common/tuners/tuner-i2c.h
@@ -170,4 +170,12 @@ __fail: \
__ret; \
})
+#define hybrid_tuner_report_instance_count(state) \
+({ \
+ int __ret = 0; \
+ if (state) \
+ __ret = state->i2c_props.count; \
+ __ret; \
+})
+
#endif /* __TUNER_I2C_H__ */