iio: convert to common i2c_check_functionality() return value
[deliverable/linux.git] / drivers / iio / humidity / si7020.c
index 5ab4e06fb5449c9a9af97c2c0994c7906db63a03..ffc2ccf6374e644ac27a25296ef16371221a487e 100644 (file)
@@ -121,7 +121,7 @@ static int si7020_probe(struct i2c_client *client,
        if (!i2c_check_functionality(client->adapter,
                                     I2C_FUNC_SMBUS_WRITE_BYTE |
                                     I2C_FUNC_SMBUS_READ_WORD_DATA))
-               return -ENODEV;
+               return -EOPNOTSUPP;
 
        /* Reset device, loads default settings. */
        ret = i2c_smbus_write_byte(client, SI7020CMD_RESET);
This page took 0.039712 seconds and 5 git commands to generate.