iio: convert to common i2c_check_functionality() return value
Previously most drivers that used a i2c_check_functionality() check condition required various error codes on failure. This patchset converts to a standard of -EOPNOTSUPP Signed-off-by: Matt Ranostay <mranostay@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:

committed by
Jonathan Cameron

parent
33da559f86
commit
f8d9d3b434
@@ -278,7 +278,7 @@ static int lidar_probe(struct i2c_client *client,
|
||||
I2C_FUNC_SMBUS_WORD_DATA | I2C_FUNC_SMBUS_BYTE))
|
||||
data->xfer = lidar_smbus_xfer;
|
||||
else
|
||||
return -ENOTSUPP;
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
indio_dev->info = &lidar_info;
|
||||
indio_dev->name = LIDAR_DRV_NAME;
|
||||
|
Reference in New Issue
Block a user