summaryrefslogtreecommitdiff
path: root/linux/include/media
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-05-02 16:00:44 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-05-02 16:00:44 -0300
commitfb92440f40e711054ab1c7cf588f5e1c4991a57d (patch)
treed4e1e4633eccb79a751f104f13ca372deeab62fc /linux/include/media
parentaa4fe3388c9e6816f918a59218a376ac165c33f8 (diff)
downloadmediapointer-dvb-s2-fb92440f40e711054ab1c7cf588f5e1c4991a57d.tar.gz
mediapointer-dvb-s2-fb92440f40e711054ab1c7cf588f5e1c4991a57d.tar.bz2
i2c-compat.h were duplicated at linux/include. removing.
From: Mauro Carvalho Chehab <mchehab@infradead.org> This file is meant only to make compatibility with kernel 2.4. Shouldn't stay at linux/*. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include/media')
-rw-r--r--linux/include/media/i2c-compat.h57
1 files changed, 0 insertions, 57 deletions
diff --git a/linux/include/media/i2c-compat.h b/linux/include/media/i2c-compat.h
deleted file mode 100644
index 39fa183fa..000000000
--- a/linux/include/media/i2c-compat.h
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * $Id: i2c-compat.h,v 1.3 2005/10/16 12:13:58 mchehab Exp $
- *
- * some i2c layer compatibility stuff -- to avoid cluttering up the
- * i2c modules with tons of #ifdefs
- */
-
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,66)
-
-static inline void *i2c_get_adapdata(struct i2c_adapter *dev)
-{
- return dev->data;
-}
-
-static inline void i2c_set_adapdata(struct i2c_adapter *dev, void *data)
-{
- dev->data = data;
-}
-
-static inline void *i2c_get_clientdata(struct i2c_client *dev)
-{
- return dev->data;
-}
-
-static inline void i2c_set_clientdata(struct i2c_client *dev, void *data)
-{
- dev->data = data;
-}
-
-#define I2C_DEVNAME(str) .name = str
-
-static inline char *i2c_clientname(struct i2c_client *c)
-{
- return c->name;
-}
-
-static inline void i2c_clients_command(struct i2c_adapter *adap,
- unsigned int cmd, void *arg)
-{
- int i;
-
- for (i = 0; i < I2C_CLIENT_MAX; i++) {
- if (NULL == adap->clients[i])
- continue;
- if (NULL == adap->clients[i]->driver->command)
- continue;
- adap->clients[i]->driver->command(adap->clients[i],cmd,arg);
- }
-}
-
-#endif
-
-/*
- * Local variables:
- * c-basic-offset: 8
- * End:
- */