On Mon, Nov 28, 2022 at 07:04:28PM +0100, Bartosz Golaszewski wrote: > On Fri, Nov 25, 2022 at 7:11 PM Andy Shevchenko > <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote: ... > > +#define to_gpio_device(_dev_) container_of(_dev_, struct gpio_device, dev) > > + > > Just make it a static inline, please. Made in v2. Thanks for review! -- With Best Regards, Andy Shevchenko