Changeset 4058

Show
Ignore:
Timestamp:
06/23/06 19:46:23 (7 years ago)
Author:
khali
Message:

i2c-core, i2c.h: Mark block write buffers as const (2.6 backport)

Location:
i2c/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/CHANGES

    r4047 r4058  
    1818----------------------------------------------------------------------------- 
    1919 
    20 CVS HEAD 
     20SVN HEAD 
    2121  Makefile: Fix i2c-pcf8584.h installation 
    2222  Makefile: Fix depmod on non-running kernel version 
     23  i2c-core, i2c.h: Mark block write buffers as const (2.6 backport) 
    2324  i2c-iop3xx: Fix return value of master_xfer method 
    2425 
  • i2c/trunk/kernel/i2c-core.c

    r4018 r4058  
    10921092 
    10931093extern s32 i2c_smbus_write_block_data(struct i2c_client * client, 
    1094                                       u8 command, u8 length, u8 *values) 
     1094                                      u8 command, u8 length, const u8 *values) 
    10951095{ 
    10961096        union i2c_smbus_data data; 
     
    11441144 
    11451145extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client, 
    1146                                           u8 command, u8 length, u8 *values) 
     1146                                          u8 command, u8 length, 
     1147                                          const u8 *values) 
    11471148{ 
    11481149        union i2c_smbus_data data; 
  • i2c/trunk/kernel/i2c.h

    r4027 r4058  
    111111extern s32 i2c_smbus_write_block_data(struct i2c_client * client, 
    112112                                      u8 command, u8 length, 
    113                                       u8 *values); 
     113                                      const u8 *values); 
    114114/* Returns the number of read bytes */ 
    115115extern s32 i2c_smbus_read_i2c_block_data(struct i2c_client * client, 
     
    117117extern s32 i2c_smbus_write_i2c_block_data(struct i2c_client * client, 
    118118                                          u8 command, u8 length, 
    119                                           u8 *values); 
     119                                          const u8 *values); 
    120120 
    121121