Re: [PATCH v3 1/2] iio: pressure: bmp280: add support for BMP180

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

 



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



[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