Re: [PATCH 2/3] iio: dac: ad5686: add of_match_table

From: Andy Shevchenko
Date: Sat Mar 21 2020 - 20:33:52 EST


On Wed, Mar 18, 2020 at 5:56 PM Michael Auchter <michael.auchter@xxxxxx> wrote:
>
> Add of_match_table to this driver, so devices can be probed based on
> device tree contents.

> + .of_match_table = of_match_ptr(ad5686_of_match),

There is no need to use of_match_ptr().
Didn't you get a compiler warning for !OF case?

--
With Best Regards,
Andy Shevchenko