Changeset 4230

Show
Ignore:
Timestamp:
11/10/06 10:22:12 (8 years ago)
Author:
khali
Message:

The I2C_FUNCS ioctl expects an unsigned long.

Location:
lm-sensors/trunk/prog
Files:
7 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/detect/i2cdetect.c

    r4213 r4230  
    154154}; 
    155155 
    156 void print_functionality(long funcs) 
     156void print_functionality(unsigned long funcs) 
    157157{ 
    158158        int i; 
     
    169169        int i2cbus, file, res; 
    170170        char filename[20]; 
    171         long funcs; 
     171        unsigned long funcs; 
    172172        int mode = MODE_AUTO; 
    173173        int first = 0x03, last = 0x77; 
  • lm-sensors/trunk/prog/dump/i2cbusses.c

    r4080 r4230  
    5555static enum adt i2c_get_funcs(int i2cbus) 
    5656{ 
    57         long funcs; 
     57        unsigned long funcs; 
    5858        int file; 
    5959        char filename[20]; 
  • lm-sensors/trunk/prog/dump/i2cdump.c

    r4094 r4230  
    5656        int bank = 0, bankreg = 0x4E, old_bank = 0; 
    5757        char filename[20]; 
    58         long funcs; 
     58        unsigned long funcs; 
    5959        int block[256]; 
    6060        int pec = 0, even = 0; 
  • lm-sensors/trunk/prog/dump/i2cget.c

    r4080 r4230  
    5252int check_funcs(int file, int i2cbus, int size, int daddress, int pec) 
    5353{ 
    54         long funcs; 
     54        unsigned long funcs; 
    5555 
    5656        /* check adapter functionality */ 
  • lm-sensors/trunk/prog/dump/i2cset.c

    r4080 r4230  
    5050        int e1; 
    5151        char filename[20]; 
    52         long funcs; 
     52        unsigned long funcs; 
    5353        int pec = 0; 
    5454        int flags = 0; 
  • lm-sensors/trunk/prog/eepromer/24cXX.c

    r2099 r4230  
    7070int eeprom_open(char *dev_fqn, int addr, int type, struct eeprom* e) 
    7171{ 
    72         int funcs, fd, r; 
     72        int fd, r; 
     73        unsigned long funcs; 
    7374        e->fd = e->addr = 0; 
    7475        e->dev = 0; 
  • lm-sensors/trunk/prog/eepromer/eepromer.c

    r2830 r4230  
    8080 
    8181        int i,j,res,i2cbus,address,size,file;                                          
    82         long funcs; 
    8382        struct i2c_msg *msgs,msg[2]; 
    8483        int nmsgs,addr; 
     
    377376 
    378377        int file;        
    379         long funcs; 
     378        unsigned long funcs; 
    380379 
    381380        if ((file = open(device,O_RDWR)) < 0) {