]> www.infradead.org Git - users/hch/misc.git/commit
USB: gadget: fix up const issue with struct usb_function_instance
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 13:41:46 +0000 (15:41 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2025 10:31:34 +0000 (12:31 +0200)
commitd1d89e8eee6f0e91cfad2a0375ad679fd5c1ae83
treeff029b2f709b29fcc46db8a1b7e6d8ef037b751e
parent2596313a4d91afd94608e06cf877adedbdb656be
USB: gadget: fix up const issue with struct usb_function_instance

In struct usb_function, the struct usb_function_instance pointer
variable "fi" is listed as const, but it is written to in numerous
places, making the const marking of it a total lie.  Fix this up by just
removing the const pointer attribute as this is modified in numerous
places.

Link: https://lore.kernel.org/r/2025052145-undress-puma-f7cf@gregkh
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_mass_storage.h
include/linux/usb/composite.h