Re: [Patch v2.1] Adds support for the Texas Instruments ADS1110 adc.

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

 



+
+	/* read the config register from the chip */
+	ret = ads1110_i2c_read_config(chip,&chip->config);
+	if (ret != 3)
+		goto error_free_dev;
Any chance this could be ret == 2?  If so you are returning a non
error in a case where there has been one...  Odd case, but might as
well get it right.

ads1110_i2c_read_config returns number of bytes read or a negative error value. If we could not read three bytes there was an error.

--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux