Changeset 4950

Show
Ignore:
Timestamp:
10/14/07 13:42:41 (1 year ago)
Author:
khali
Message:

Rename I2C_FUNC_SMBUS_HWPEC_CALC to I2C_FUNC_SMBUS_PEC, as was done
in the Linux 2.6 kernel.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • lm-sensors/trunk/CHANGES

    r4946 r4950  
    33 
    44SVN HEAD 
     5  File i2c-dev.h: Rename I2C_FUNC_SMBUS_HWPEC_CALC to I2C_FUNC_SMBUS_PEC 
    56  File sensors.conf.eg: Add a thmc50 section 
    67  File useful_addresses.html: Moved to the wiki 
  • lm-sensors/trunk/kernel/include/i2c-dev.h

    r4417 r4950  
    5353#define I2C_FUNC_10BIT_ADDR             0x00000002 
    5454#define I2C_FUNC_PROTOCOL_MANGLING      0x00000004 /* I2C_M_{REV_DIR_ADDR,NOSTART,..} */ 
    55 #define I2C_FUNC_SMBUS_HWPEC_CALC      0x00000008 /* SMBus 2.0 */ 
     55#define I2C_FUNC_SMBUS_PEC             0x00000008 
    5656#define I2C_FUNC_SMBUS_BLOCK_PROC_CALL  0x00008000 /* SMBus 2.0 */ 
    5757#define I2C_FUNC_SMBUS_QUICK            0x00010000  
     
    8383                                    I2C_FUNC_SMBUS_WRITE_I2C_BLOCK_2) 
    8484 
     85/* Old name, for compatibility */ 
     86#define I2C_FUNC_SMBUS_HWPEC_CALC       I2C_FUNC_SMBUS_PEC 
     87 
    8588/*  
    8689 * Data for SMBus Messages  
  • lm-sensors/trunk/prog/detect/i2cdetect.c

    r4316 r4950  
    147147        { .value = I2C_FUNC_SMBUS_BLOCK_PROC_CALL, 
    148148          .name = "SMBus Block Process Call" }, 
    149         { .value = I2C_FUNC_SMBUS_HWPEC_CALC, 
     149        { .value = I2C_FUNC_SMBUS_PEC, 
    150150          .name = "SMBus PEC" }, 
    151151        { .value = I2C_FUNC_SMBUS_WRITE_I2C_BLOCK, 
  • lm-sensors/trunk/prog/dump/i2cdump.c

    r4432 r4950  
    245245                        exit(1); 
    246246                } 
    247                 if (!(funcs & (I2C_FUNC_SMBUS_HWPEC_CALC | I2C_FUNC_I2C))) { 
     247                if (!(funcs & (I2C_FUNC_SMBUS_PEC | I2C_FUNC_I2C))) { 
    248248                        fprintf(stderr, "Warning: Adapter for i2c bus %d does " 
    249249                                "not seem to actually support PEC\n", i2cbus); 
  • lm-sensors/trunk/prog/dump/i2cget.c

    r4432 r4950  
    9595 
    9696        if (pec 
    97          && !(funcs & (I2C_FUNC_SMBUS_HWPEC_CALC | I2C_FUNC_I2C))) { 
     97         && !(funcs & (I2C_FUNC_SMBUS_PEC | I2C_FUNC_I2C))) { 
    9898                fprintf(stderr, "Warning: Adapter for i2c bus %d does " 
    9999                        "not seem to support PEC\n", i2cbus); 
  • lm-sensors/trunk/prog/dump/i2cset.c

    r4432 r4950  
    235235                        exit(1); 
    236236                } 
    237                 if (!(funcs & (I2C_FUNC_SMBUS_HWPEC_CALC | I2C_FUNC_I2C))) { 
     237                if (!(funcs & (I2C_FUNC_SMBUS_PEC | I2C_FUNC_I2C))) { 
    238238                        fprintf(stderr, "Warning: Adapter for i2c bus %d does " 
    239239                                "not seem to actually support PEC\n", i2cbus);