usb: gadget: uvc: Rename bmInterfaceFlags -> bmInterlaceFlags
authorDaniel Scally <dan.scally@ideasonboard.com>
Tue, 6 Dec 2022 16:12:03 +0000 (16:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 15:53:47 +0000 (16:53 +0100)
commit81c25247a2a03a0f97e4805d7aff7541ccff6baa
tree342ebf7e888770a1e301f01db43d84f233d53de9
parentade23d7b7ec5c38bd43ec44ccb753cb7ea8ac08a
usb: gadget: uvc: Rename bmInterfaceFlags -> bmInterlaceFlags

In the specification documents for the Uncompressed and MJPEG USB
Video Payloads, the field name is bmInterlaceFlags - it has been
misnamed within the kernel.

Although renaming the field does break the kernel's interface to
userspace it should be low-risk in this instance. The field is read
only and hardcoded to 0, so there was never any value in anyone
reading it. A search of the uvc-gadget application and all the
forks that I could find for it did not reveal any users either.

Fixes: cdda479f15cd ("USB gadget: video class function driver")
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20221206161203.1562827-1-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/ABI/testing/configfs-usb-gadget-uvc
drivers/usb/gadget/function/uvc_configfs.c
drivers/usb/gadget/legacy/webcam.c
include/uapi/linux/usb/video.h