From 5fe87cdaecf59b1342419576b010b191278a8ed4 Mon Sep 17 00:00:00 2001 From: Krzysztof Halasa Date: Mon, 12 Jun 2006 21:42:20 +0200 Subject: [PATCH] --- yaml --- r: 28647 b: refs/heads/master c: 46f5ed753fac512f73069bd07455555b41a8a06e h: refs/heads/master i: 28645: b07e485e0a409e89627b1fdce404c24f27d3a580 28643: 7606da2b8635b37d452e1d25f5435f81541ae826 28639: 90d460f2347408f959a91eba6e3dd537c5c63b00 v: v3 --- [refs] | 2 +- trunk/drivers/i2c/i2c-core.c | 4 ++-- trunk/include/linux/i2c.h | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 4ba164b69fa0..8c9af5d86c33 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 1ded969fb97fba33e7310ef95f0b3e3123d4d92a +refs/heads/master: 46f5ed753fac512f73069bd07455555b41a8a06e diff --git a/trunk/drivers/i2c/i2c-core.c b/trunk/drivers/i2c/i2c-core.c index 45e2cdf54736..a45155f799d4 100644 --- a/trunk/drivers/i2c/i2c-core.c +++ b/trunk/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; diff --git a/trunk/include/linux/i2c.h b/trunk/include/linux/i2c.h index 0510430e00db..526ddc8eecfb 100644 --- a/trunk/include/linux/i2c.h +++ b/trunk/include/linux/i2c.h @@ -97,13 +97,13 @@ extern s32 i2c_smbus_write_word_data(struct i2c_client * client, u8 command, u16 value); extern s32 i2c_smbus_write_block_data(struct i2c_client * client, u8 command, u8 length, - u8 *values); + const u8 *values); /* Returns the number of read bytes */ extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client, u8 command, u8 *values); extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client, u8 command, u8 length, - u8 *values); + const u8 *values); /* * A driver is capable of handling one or more physical devices present on