+
+ /* 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