mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
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: cdda479f15 ("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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ade23d7b7e
commit
81c25247a2
@@ -1512,7 +1512,7 @@ UVCG_UNCOMPRESSED_ATTR(b_bits_per_pixel, bBitsPerPixel, 8);
|
||||
UVCG_UNCOMPRESSED_ATTR(b_default_frame_index, bDefaultFrameIndex, 8);
|
||||
UVCG_UNCOMPRESSED_ATTR_RO(b_aspect_ratio_x, bAspectRatioX, 8);
|
||||
UVCG_UNCOMPRESSED_ATTR_RO(b_aspect_ratio_y, bAspectRatioY, 8);
|
||||
UVCG_UNCOMPRESSED_ATTR_RO(bm_interface_flags, bmInterfaceFlags, 8);
|
||||
UVCG_UNCOMPRESSED_ATTR_RO(bm_interlace_flags, bmInterlaceFlags, 8);
|
||||
|
||||
#undef UVCG_UNCOMPRESSED_ATTR
|
||||
#undef UVCG_UNCOMPRESSED_ATTR_RO
|
||||
@@ -1541,7 +1541,7 @@ static struct configfs_attribute *uvcg_uncompressed_attrs[] = {
|
||||
&uvcg_uncompressed_attr_b_default_frame_index,
|
||||
&uvcg_uncompressed_attr_b_aspect_ratio_x,
|
||||
&uvcg_uncompressed_attr_b_aspect_ratio_y,
|
||||
&uvcg_uncompressed_attr_bm_interface_flags,
|
||||
&uvcg_uncompressed_attr_bm_interlace_flags,
|
||||
&uvcg_uncompressed_attr_bma_controls,
|
||||
NULL,
|
||||
};
|
||||
@@ -1574,7 +1574,7 @@ static struct config_group *uvcg_uncompressed_make(struct config_group *group,
|
||||
h->desc.bDefaultFrameIndex = 1;
|
||||
h->desc.bAspectRatioX = 0;
|
||||
h->desc.bAspectRatioY = 0;
|
||||
h->desc.bmInterfaceFlags = 0;
|
||||
h->desc.bmInterlaceFlags = 0;
|
||||
h->desc.bCopyProtect = 0;
|
||||
|
||||
INIT_LIST_HEAD(&h->fmt.frames);
|
||||
@@ -1700,7 +1700,7 @@ UVCG_MJPEG_ATTR(b_default_frame_index, bDefaultFrameIndex, 8);
|
||||
UVCG_MJPEG_ATTR_RO(bm_flags, bmFlags, 8);
|
||||
UVCG_MJPEG_ATTR_RO(b_aspect_ratio_x, bAspectRatioX, 8);
|
||||
UVCG_MJPEG_ATTR_RO(b_aspect_ratio_y, bAspectRatioY, 8);
|
||||
UVCG_MJPEG_ATTR_RO(bm_interface_flags, bmInterfaceFlags, 8);
|
||||
UVCG_MJPEG_ATTR_RO(bm_interlace_flags, bmInterlaceFlags, 8);
|
||||
|
||||
#undef UVCG_MJPEG_ATTR
|
||||
#undef UVCG_MJPEG_ATTR_RO
|
||||
@@ -1728,7 +1728,7 @@ static struct configfs_attribute *uvcg_mjpeg_attrs[] = {
|
||||
&uvcg_mjpeg_attr_bm_flags,
|
||||
&uvcg_mjpeg_attr_b_aspect_ratio_x,
|
||||
&uvcg_mjpeg_attr_b_aspect_ratio_y,
|
||||
&uvcg_mjpeg_attr_bm_interface_flags,
|
||||
&uvcg_mjpeg_attr_bm_interlace_flags,
|
||||
&uvcg_mjpeg_attr_bma_controls,
|
||||
NULL,
|
||||
};
|
||||
@@ -1755,7 +1755,7 @@ static struct config_group *uvcg_mjpeg_make(struct config_group *group,
|
||||
h->desc.bDefaultFrameIndex = 1;
|
||||
h->desc.bAspectRatioX = 0;
|
||||
h->desc.bAspectRatioY = 0;
|
||||
h->desc.bmInterfaceFlags = 0;
|
||||
h->desc.bmInterlaceFlags = 0;
|
||||
h->desc.bCopyProtect = 0;
|
||||
|
||||
INIT_LIST_HEAD(&h->fmt.frames);
|
||||
|
||||
Reference in New Issue
Block a user