summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/i2c-core.c
diff options
context:
space:
mode:
authorKrzysztof Halasa <khc@pm.waw.pl>2006-06-12 21:42:20 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-06-22 11:10:34 -0700
commit46f5ed753fac512f73069bd07455555b41a8a06e (patch)
treefd36fabe80349967a71efa373e2ad42c12b1af3b /drivers/i2c/i2c-core.c
parent1ded969fb97fba33e7310ef95f0b3e3123d4d92a (diff)
downloadlinux-46f5ed753fac512f73069bd07455555b41a8a06e.tar.gz
linux-46f5ed753fac512f73069bd07455555b41a8a06e.tar.bz2
linux-46f5ed753fac512f73069bd07455555b41a8a06e.zip
[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 'drivers/i2c/i2c-core.c')
-rw-r--r--drivers/i2c/i2c-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 45e2cdf54736..a45155f799d4 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -916,7 +916,7 @@ s32 i2c_smbus_write_word_data(struct i2c_client *client, u8 command, u16 value)
}
s32 i2c_smbus_write_block_data(struct i2c_client *client, u8 command,
- u8 length, u8 *values)
+ u8 length, const u8 *values)
{
union i2c_smbus_data data;
@@ -944,7 +944,7 @@ s32 i2c_smbus_read_i2c_block_data(struct i2c_client *client, u8 command, u8 *val
}
s32 i2c_smbus_write_i2c_block_data(struct i2c_client *client, u8 command,
- u8 length, u8 *values)
+ u8 length, const u8 *values)
{
union i2c_smbus_data data;