[Letux-kernel] [PATCH 2/9 v2] iio: pressure: bmp280: support device tree initialization

Linus Walleij linus.walleij at linaro.org
Fri Jun 24 12:26:10 CEST 2016


On Thu, Jun 23, 2016 at 10:18 AM, H. Nikolaus Schaller
<hns at goldelico.com> wrote:
>> Am 22.06.2016 um 22:53 schrieb Linus Walleij <linus.walleij at linaro.org>:

>> +#ifdef CONFIG_OF
>> +static const struct of_device_id bmp280_of_match[] = {
>> +     { .compatible = "bosch,bme280", .data = (void *)BME280_CHIP_ID },
>> +     { .compatible = "bosch,bmp280", .data = (void *)BMP280_CHIP_ID },
>> +     { .compatible = "bosch,bmp180", .data = (void *)BMP180_CHIP_ID },
>> +     { .compatible = "bosch,bmp085", .data = (void *)BMP180_CHIP_ID },
>
> Here I get:
>
> FATAL: drivers/iio/pressure/bmp280-i2c: struct of_device_id is not terminated with a NULL entry!

I got this from the build robot too, fixed locally and resending in v3.
Thanks!

Yours,
Linus Walleij


More information about the Letux-kernel mailing list