diff options
author | Krzysztof Halasa <khc@pm.waw.pl> | 2006-06-12 15:42:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-22 14:10:34 -0400 |
commit | 46f5ed753fac512f73069bd07455555b41a8a06e (patch) | |
tree | fd36fabe80349967a71efa373e2ad42c12b1af3b /include/linux/i2c.h | |
parent | 1ded969fb97fba33e7310ef95f0b3e3123d4d92a (diff) |
[PATCH] i2c: Mark block write buffers as const
The attached patch marks i2c_smbus_write_block_data() and
i2c_smbus_write_i2c_block_data() buffers as const.
Signed-off-by: Krzysztof Halasa <khc@pm.waw.pl>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/i2c.h')
-rw-r--r-- | include/linux/i2c.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 0510430e00db..526ddc8eecfb 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h | |||
@@ -97,13 +97,13 @@ extern s32 i2c_smbus_write_word_data(struct i2c_client * client, | |||
97 | u8 command, u16 value); | 97 | u8 command, u16 value); |
98 | extern s32 i2c_smbus_write_block_data(struct i2c_client * client, | 98 | extern s32 i2c_smbus_write_block_data(struct i2c_client * client, |
99 | u8 command, u8 length, | 99 | u8 command, u8 length, |
100 | u8 *values); | 100 | const u8 *values); |
101 | /* Returns the number of read bytes */ | 101 | /* Returns the number of read bytes */ |
102 | extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client, | 102 | extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client, |
103 | u8 command, u8 *values); | 103 | u8 command, u8 *values); |
104 | extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client, | 104 | extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client, |
105 | u8 command, u8 length, | 105 | u8 command, u8 length, |
106 | u8 *values); | 106 | const u8 *values); |
107 | 107 | ||
108 | /* | 108 | /* |
109 | * A driver is capable of handling one or more physical devices present on | 109 | * A driver is capable of handling one or more physical devices present on |