Browse Source

Make value arrays const for block write functions. Patch from Roman

Fietze.


git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5894 7894878c-1315-0410-8ee3-d5d059ff63e0
tags/v3.1.0
Jean Delvare 15 years ago
parent
commit
210dd401a5
  1. 3
      CHANGES
  2. 5
      include/linux/i2c-dev.h

3
CHANGES

@ -1,6 +1,9 @@
i2c-tools CHANGES
-----------------
SVN
i2c-dev.h: Make value arrays const for block write functions
3.0.3 (2010-12-12)
Makefile: Let the environment set CC and CFLAGS
Integrate py-smbus into the build system

5
include/linux/i2c-dev.h

@ -258,7 +258,7 @@ static inline __s32 i2c_smbus_read_block_data(int file, __u8 command,
}
static inline __s32 i2c_smbus_write_block_data(int file, __u8 command,
__u8 length, __u8 *values)
__u8 length, const __u8 *values)
{
union i2c_smbus_data data;
int i;
@ -296,7 +296,8 @@ static inline __s32 i2c_smbus_read_i2c_block_data(int file, __u8 command,
}
static inline __s32 i2c_smbus_write_i2c_block_data(int file, __u8 command,
__u8 length, __u8 *values)
__u8 length,
const __u8 *values)
{
union i2c_smbus_data data;
int i;

Loading…
Cancel
Save