Hi Marek,

Thank you for the patch.

On lun., août 26, 2024 at 16:38, Marek Vasut <[email protected]> 
wrote:

> This function is unused, remove it.
>
> Signed-off-by: Marek Vasut <[email protected]>

Reviewed-by: Mattijs Korpershoek <[email protected]>

> ---
> Cc: Linus Walleij <[email protected]>
> Cc: Lukasz Majewski <[email protected]>
> Cc: Mattijs Korpershoek <[email protected]>
> Cc: Miquel Raynal <[email protected]>
> Cc: Neil Armstrong <[email protected]>
> Cc: Nishanth Menon <[email protected]>
> Cc: Zixun LI <[email protected]>
> ---
>  include/linux/usb/gadget.h | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
> index a2b8520bc99..194025ebd12 100644
> --- a/include/linux/usb/gadget.h
> +++ b/include/linux/usb/gadget.h
> @@ -558,11 +558,6 @@ static inline void *get_gadget_data(struct usb_gadget 
> *gadget)
>       return gadget->driver_data;
>  }
>  
> -static inline struct usb_gadget *dev_to_usb_gadget(struct device *dev)
> -{
> -     return container_of(dev, struct usb_gadget, dev);
> -}
> -
>  /* iterates the non-control endpoints; 'tmp' is a struct usb_ep pointer */
>  #define gadget_for_each_ep(tmp, gadget) \
>       list_for_each_entry(tmp, &(gadget)->ep_list, ep_list)
> -- 
> 2.45.2

Reply via email to