Skip to contentSkip to conversation

media: vivid: Remove unused overlay format declarations

PATCH New Hyeonjun Hong 1 participant 1 message Sep 15

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 media: vivid: Remove unused overlay format declarations

vivid-vid-cap.h and vivid-vid-out.h still declare five overlay format ioctl handlers that are neither defined nor used.

The four capture overlay declarations were left behind by commit ccaa9d50ca73 ("media: vivid: drop overlay support"), which removed the functions and their registration.

vidioc_enum_fmt_vid_out_overlay() has never been implemented. It was declared when vivid was added in commit ef834f7836ec ("[media] vivid:
add the video capture and output parts"), and struct v4l2_ioctl_ops has no such operation.

Remove the unused declarations.

Assisted-by LLM
---
 drivers/media/test-drivers/vivid/vivid-vid-cap.h | 4 ----
 drivers/media/test-drivers/vivid/vivid-vid-out.h | 1 -
 2 files changed, 5 deletions(-)
drivers/media/test-drivers/vivid/vivid-vid-cap.h +0 -4
index d08a85927510..2fb792cc3a4d 100644
@@ -32,10 +32,6 @@ int vidioc_s_fmt_vid_cap(struct file *file, void *priv, struct v4l2_format *f);
 int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
 int vivid_vid_cap_s_selection(struct file *file, void *priv, struct v4l2_selection *s);
 int vivid_vid_cap_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f);
-int vidioc_enum_fmt_vid_overlay(struct file *file, void  *priv, struct v4l2_fmtdesc *f);
-int vidioc_g_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
-int vidioc_try_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
-int vidioc_s_fmt_vid_overlay(struct file *file, void *priv, struct v4l2_format *f);
 int vidioc_enum_input(struct file *file, void *priv, struct v4l2_input *inp);
 int vidioc_g_input(struct file *file, void *priv, unsigned *i);
 int vidioc_s_input(struct file *file, void *priv, unsigned i);
drivers/media/test-drivers/vivid/vivid-vid-out.h +0 -1
index 1d03891a5de5..dd259206e25b 100644
@@ -24,7 +24,6 @@ int vidioc_s_fmt_vid_out(struct file *file, void *priv, struct v4l2_format *f);
 int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
 int vivid_vid_out_s_selection(struct file *file, void *priv, struct v4l2_selection *s);
 int vivid_vid_out_g_pixelaspect(struct file *file, void *priv, int type, struct v4l2_fract *f);
-int vidioc_enum_fmt_vid_out_overlay(struct file *file, void  *priv, struct v4l2_fmtdesc *f);
 int vidioc_g_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
 int vidioc_try_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
 int vidioc_s_fmt_vid_out_overlay(struct file *file, void *priv, struct v4l2_format *f);
Signature · 1 line
2.34.1