diff options
author | Holger Waechtler <devnull@localhost> | 2002-11-18 21:20:16 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-11-18 21:20:16 +0000 |
commit | c761200bb1c7e93a8ef7d0375a247083526ef1f8 (patch) | |
tree | 92631075f85a11219edddd80c53760e4f24e7991 /linux/drivers/media/dvb/dvb-core | |
parent | 00ea83254c949d68b911eb856e503a18939c11b4 (diff) | |
download | mediapointer-dvb-s2-c761200bb1c7e93a8ef7d0375a247083526ef1f8.tar.gz mediapointer-dvb-s2-c761200bb1c7e93a8ef7d0375a247083526ef1f8.tar.bz2 |
make i2c messages const pointers
Diffstat (limited to 'linux/drivers/media/dvb/dvb-core')
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_i2c.c | 17 | ||||
-rw-r--r-- | linux/drivers/media/dvb/dvb-core/dvb_i2c.h | 19 |
2 files changed, 17 insertions, 19 deletions
diff --git a/linux/drivers/media/dvb/dvb-core/dvb_i2c.c b/linux/drivers/media/dvb/dvb-core/dvb_i2c.c index ce1e9705e..2c9f77e7f 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_i2c.c +++ b/linux/drivers/media/dvb/dvb-core/dvb_i2c.c @@ -168,7 +168,7 @@ void probe_devices_on_bus (struct dvb_i2c_bus *i2c) static struct dvb_i2c_bus* dvb_find_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, - struct i2c_msg msgs[], + const struct i2c_msg msgs[], int num), struct dvb_adapter *adapter, int id) @@ -188,12 +188,10 @@ struct dvb_i2c_bus* dvb_find_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, } -struct dvb_i2c_bus* dvb_register_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, - struct i2c_msg msgs[], - int num), - void *data, - struct dvb_adapter *adapter, - int id) +struct dvb_i2c_bus* +dvb_register_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, + const struct i2c_msg *msgs, int num), + void *data, struct dvb_adapter *adapter, int id) { struct dvb_i2c_bus *i2c; @@ -222,9 +220,8 @@ struct dvb_i2c_bus* dvb_register_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, void dvb_unregister_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, - struct i2c_msg msgs[], int num), - struct dvb_adapter *adapter, - int id) + const struct i2c_msg msgs[], int num), + struct dvb_adapter *adapter, int id) { struct dvb_i2c_bus *i2c; diff --git a/linux/drivers/media/dvb/dvb-core/dvb_i2c.h b/linux/drivers/media/dvb/dvb-core/dvb_i2c.h index 137e9b155..867a12c85 100644 --- a/linux/drivers/media/dvb/dvb-core/dvb_i2c.h +++ b/linux/drivers/media/dvb/dvb-core/dvb_i2c.h @@ -30,7 +30,9 @@ struct dvb_i2c_bus { struct list_head list_head; - int (*xfer) (struct dvb_i2c_bus *i2c, struct i2c_msg msgs[], int num); + int (*xfer) (struct dvb_i2c_bus *i2c, + const struct i2c_msg msgs[], + int num); void *data; struct dvb_adapter *adapter; int id; @@ -38,17 +40,16 @@ struct dvb_i2c_bus { }; -extern -struct dvb_i2c_bus* dvb_register_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, - struct i2c_msg msgs[], - int num), - void *data, - struct dvb_adapter *adapter, - int id); +extern struct dvb_i2c_bus* +dvb_register_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, + const struct i2c_msg *msgs, int num), + void *data, + struct dvb_adapter *adapter, + int id); extern void dvb_unregister_i2c_bus (int (*xfer) (struct dvb_i2c_bus *i2c, - struct i2c_msg msgs[], int num), + const struct i2c_msg msgs[], int num), struct dvb_adapter *adapter, int id); |