diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-05 11:21:32 -0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-02-05 11:21:32 -0200 |
commit | 4ac1cd8ad088bf6e13b4448feb8806a56c361a17 (patch) | |
tree | d88a43249494ae7b98307967df9aab4746639b4b /v4l | |
parent | 4ce8ef90769df3644a1eb9fee1b7746dea09e753 (diff) | |
download | mediapointer-dvb-s2-4ac1cd8ad088bf6e13b4448feb8806a56c361a17.tar.gz mediapointer-dvb-s2-4ac1cd8ad088bf6e13b4448feb8806a56c361a17.tar.bz2 |
Fix compilation against kernel 2.6.23
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/v4l/compat.h b/v4l/compat.h index b4c1ca374..16a6d03b4 100644 --- a/v4l/compat.h +++ b/v4l/compat.h @@ -497,6 +497,10 @@ do { \ #ifndef BIT_MASK # define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) # define BIT_WORD(nr) ((nr) / BITS_PER_LONG) + +#define i2c_verify_client(dev) \ + ((dev->bus == &i2c_bus_type) ? to_i2c_client(dev) : NULL) + #endif |