Re: [PATCH v3 5/6] iio: pressure: Add timestamp and scan_masks for BMP280 driver

From: Vasileios Amoiridis
Date: Wed Mar 20 2024 - 14:45:32 EST


On Wed, Mar 20, 2024 at 01:07:07PM +0200, Andy Shevchenko wrote:
> On Tue, Mar 19, 2024 at 01:29:24AM +0100, Vasileios Amoiridis wrote:
> > The scan mask for the BME280 supports humidity measurement and
> > needs to be distinguished from the rest in order for the timestamp
> > to be able to work.
>
> ...
>
> > +enum bmp280_scan {
> > + BMP280_TEMP,
> > + BMP280_PRESS,
> > + BME280_HUMID
>
> The last is not a terminator, please leave trailing comma.
>
> > +};
>

What do you mean it is not a terminator? In general with the enum
variables I would write:

enum var { a, b, c };

Why in this case there is a comma needed after the BME280_HUMID element?

Cheers,
Vasilis
> --
> With Best Regards,
> Andy Shevchenko
>
>