Re: [PATCH] tof: Add VL53L4CX TOF drivers
From: Linus Walleij
Date: Sat Feb 07 2026 - 16:41:35 EST
On Sat, Feb 7, 2026 at 2:50 PM Jonathan Cameron <jic23@xxxxxxxxxx> wrote:
> 434779359@xxxxxx wrote:
> > +#include <linux/of_gpio.h>
>
> Whilst I haven't checked yet it would be very usual to need
> to include of_gpio.h in an IIO driver. That may imply using wrong
> level of interfaces or just a stray include.
This is a legacy header that should not be used in new
code.
<linux/gpio/consumer.h> should suffice for consumers,
<linux/gpio/driver.h> should suffice for producers.
Yours,
Linus Walleij