svn commit: r4435 - lm-sensors/trunk/prog/py-smbus by mmh

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 9 Jun 2007 18:19:45 +0200 (CEST), lm-sensors-notify at lm-sensors.org wrote:
>       Author: mmh
>         Date: Sat Jun  9 18:19:37 2007
> New Revision: 4435
>    Changeset: http://lm-sensors.org/changeset/4435
> 
> Modified:
>    lm-sensors/trunk/prog/py-smbus/smbusmodule.c
> 
> Log:
> Allow i2c block transfers with of length < 32 on kernels that support it.

>  	if (i2c_smbus_access(self->fd, I2C_SMBUS_READ, (__u8)cmd,
> +				len = 32 ? I2C_SMBUS_I2C_BLOCK_BROKEN:
>  				I2C_SMBUS_I2C_BLOCK_DATA, &data)) {

This looks wrong to me, should be "len == 32"?

-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux