diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2022-12-20 23:56:44 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2023-01-15 23:45:10 +0200 |
commit | adfd3910c27fbc0959ae5f1dafaec563f7d0bdd2 (patch) | |
tree | 5481736eba5f65952bf84dfcbbdc6e0496d0bcdc /drivers/media/usb/uvc/uvc_video.c | |
parent | 0ce75d5ecd9edaa027c0c2a7df0edcdf59ea7738 (diff) |
media: uvcvideo: Remove void casting for the status endpoint
Make the code more resilient, by replacing the castings with proper
structure definitions and using offsetof() instead of open coding the
location of the data.
Suggested-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Reviewed-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/media/usb/uvc/uvc_video.c')
0 files changed, 0 insertions, 0 deletions