Re: [PATCH v4 3/5] iio: adc: mp2629: Add support for mp2629 ADC driver

Andy Shevchenko
2020-03-29T11:09:29Z

On Sun, Mar 29, 2020 at 1:37 PM saravanan sekar <sravanhome@gmail.com> wrote:
> On 28/03/20 3:42 pm, Jonathan Cameron wrote:
> > On Mon, 23 Mar 2020 01:32:34 +0200
> > Andy Shevchenko <andy.shevchenko@gmail.com> wrote:
> >> On Mon, Mar 23, 2020 at 12:47 AM Saravanan Sekar <sravanhome@gmail.com> wrote:

...

> >>> +#include <linux/of_device.h>
> >> Don't see users of it.
> Forgot to reply, its needed since I used struct of_device
> "error: field name not in record or union initializer
> { .compatible = "mps,mp2629_charger"},"

Yes, and my comment still stays. The error you get due to lack of
proper header, i.e. mod_devicetable.h.

--
With Best Regards,
Andy Shevchenko