[PATCH v2 2/9] driver core: Add dev_set_drv_queue_sync_state()
Ulf Hansson
ulf.hansson at linaro.org
Wed Apr 22 03:25:15 PDT 2026
On Sat, 18 Apr 2026 at 13:24, Danilo Krummrich <dakr at kernel.org> wrote:
>
> On Fri Apr 10, 2026 at 12:40 PM CEST, Ulf Hansson wrote:
> > diff --git a/include/linux/device.h b/include/linux/device.h
> > index e65d564f01cd..f812e70bdf22 100644
> > --- a/include/linux/device.h
> > +++ b/include/linux/device.h
> > @@ -994,6 +994,18 @@ static inline int dev_set_drv_sync_state(struct device *dev,
> > return 0;
> > }
> >
> > +static inline int dev_set_drv_queue_sync_state(struct device *dev,
> > + void (*fn)(struct device *dev))
>
> As this is a public function, please add some documentation.
Most of the static inline functions in device.h lacks documentation.
Are you suggesting that we should move towards documenting all of
them?
In this case, dev_set_drv_sync_state() also lacks documentation and to
me, it doesn't make sense to add documentation only for
dev_set_drv_queue_sync_state(). Do you want me to add it for both?
[...]
Kind regards
Uffe
More information about the linux-arm-kernel
mailing list