Changeset 3615

Show
Ignore:
Timestamp:
03/03/02 18:37:44 (11 years ago)
Author:
mds
Message:

Change max buffer size for i2cproc_bus_read() from 4000 to 4096.

This is the /proc/bus/i2c-x handler. Don't know why there is
a limit at all but my kernel 2.4.18 calls this with a size of 4096,
2.4.17 was usually 1024. Couldn't find any program in lm_sensors
that actually used this file, though.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • i2c/trunk/kernel/i2c-core.c

    r3607 r3615  
    657657        int order[I2C_CLIENT_MAX]; 
    658658 
    659         if (count > 4000) 
     659        if (count > 4096) 
    660660                return -EINVAL;  
    661661        len_total = file->f_pos + count; 
    662662        /* Too bad if this gets longer (unlikely) */ 
    663         if (len_total > 4000) 
    664                 len_total = 4000; 
     663        if (len_total > 4096) 
     664                len_total = 4096; 
    665665        for (i = 0; i < I2C_ADAP_MAX; i++) 
    666666                if (adapters[i]->inode == inode->i_ino) {