2016-04-27 12:21 GMT+09:00 Matt Ranostay <mranostay@xxxxxxxxx>: >> @@ -376,13 +711,13 @@ static int bmp280_probe(struct i2c_client *client, >> ret = regmap_read(data->regmap, BMP280_REG_ID, &chip_id); >> if (ret < 0) >> return ret; >> - if (chip_id != BMP280_CHIP_ID) { >> + if (chip_id != id->driver_data) { >> dev_err(&client->dev, "bad chip id. expected %x got %x\n", >> BMP280_CHIP_ID, chip_id); > > BMP280_CHIP_ID should be id->driver_data as well Good catch! I'll prepare a fix. -- 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