mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:44:45 +01:00
media: v4l2-core: Rename second ioctl handlers argument to 'void *priv'
The second argument to the ioctl handlers is not a file handle any more. Rename it from 'void *fh' to 'void *priv' in the V4L2 core, to avoid misconceptions. While at it, align function arguments in include/media/v4l2-mem2mem.h. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
ad46aef555
commit
9d05191c4e
4 changed files with 27 additions and 27 deletions
|
|
@ -1250,7 +1250,7 @@ EXPORT_SYMBOL(v4l2_querymenu);
|
|||
* VIDIOC_LOG_STATUS helpers
|
||||
*/
|
||||
|
||||
int v4l2_ctrl_log_status(struct file *file, void *fh)
|
||||
int v4l2_ctrl_log_status(struct file *file, void *priv)
|
||||
{
|
||||
struct video_device *vfd = video_devdata(file);
|
||||
|
||||
|
|
|
|||
|
|
@ -1460,7 +1460,7 @@ int v4l2_m2m_ioctl_streamoff(struct file *file, void *priv,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(v4l2_m2m_ioctl_streamoff);
|
||||
|
||||
int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_encoder_cmd *ec)
|
||||
{
|
||||
if (ec->cmd != V4L2_ENC_CMD_STOP && ec->cmd != V4L2_ENC_CMD_START)
|
||||
|
|
@ -1471,7 +1471,7 @@ int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(v4l2_m2m_ioctl_try_encoder_cmd);
|
||||
|
||||
int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_decoder_cmd *dc)
|
||||
{
|
||||
if (dc->cmd != V4L2_DEC_CMD_STOP && dc->cmd != V4L2_DEC_CMD_START)
|
||||
|
|
@ -1553,7 +1553,7 @@ int v4l2_m2m_ioctl_decoder_cmd(struct file *file, void *priv,
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(v4l2_m2m_ioctl_decoder_cmd);
|
||||
|
||||
int v4l2_m2m_ioctl_stateless_try_decoder_cmd(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_stateless_try_decoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_decoder_cmd *dc)
|
||||
{
|
||||
if (dc->cmd != V4L2_DEC_CMD_FLUSH)
|
||||
|
|
|
|||
|
|
@ -1313,13 +1313,13 @@ void v4l2_ctrl_merge(const struct v4l2_event *old, struct v4l2_event *new);
|
|||
* v4l2_ctrl_log_status - helper function to implement %VIDIOC_LOG_STATUS ioctl
|
||||
*
|
||||
* @file: pointer to struct file
|
||||
* @fh: unused. Kept just to be compatible to the arguments expected by
|
||||
* @priv: unused. Kept just to be compatible to the arguments expected by
|
||||
* &struct v4l2_ioctl_ops.vidioc_log_status.
|
||||
*
|
||||
* Can be used as a vidioc_log_status function that just dumps all controls
|
||||
* associated with the filehandle.
|
||||
*/
|
||||
int v4l2_ctrl_log_status(struct file *file, void *fh);
|
||||
int v4l2_ctrl_log_status(struct file *file, void *priv);
|
||||
|
||||
/**
|
||||
* v4l2_ctrl_subscribe_event - Subscribes to an event
|
||||
|
|
|
|||
|
|
@ -864,34 +864,34 @@ void v4l2_m2m_request_queue(struct media_request *req);
|
|||
/* v4l2 ioctl helpers */
|
||||
|
||||
int v4l2_m2m_ioctl_reqbufs(struct file *file, void *priv,
|
||||
struct v4l2_requestbuffers *rb);
|
||||
int v4l2_m2m_ioctl_create_bufs(struct file *file, void *fh,
|
||||
struct v4l2_create_buffers *create);
|
||||
struct v4l2_requestbuffers *rb);
|
||||
int v4l2_m2m_ioctl_create_bufs(struct file *file, void *priv,
|
||||
struct v4l2_create_buffers *create);
|
||||
int v4l2_m2m_ioctl_remove_bufs(struct file *file, void *priv,
|
||||
struct v4l2_remove_buffers *d);
|
||||
int v4l2_m2m_ioctl_querybuf(struct file *file, void *fh,
|
||||
struct v4l2_buffer *buf);
|
||||
int v4l2_m2m_ioctl_expbuf(struct file *file, void *fh,
|
||||
struct v4l2_exportbuffer *eb);
|
||||
int v4l2_m2m_ioctl_qbuf(struct file *file, void *fh,
|
||||
struct v4l2_buffer *buf);
|
||||
int v4l2_m2m_ioctl_dqbuf(struct file *file, void *fh,
|
||||
struct v4l2_buffer *buf);
|
||||
int v4l2_m2m_ioctl_prepare_buf(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_querybuf(struct file *file, void *priv,
|
||||
struct v4l2_buffer *buf);
|
||||
int v4l2_m2m_ioctl_expbuf(struct file *file, void *priv,
|
||||
struct v4l2_exportbuffer *eb);
|
||||
int v4l2_m2m_ioctl_qbuf(struct file *file, void *priv,
|
||||
struct v4l2_buffer *buf);
|
||||
int v4l2_m2m_ioctl_dqbuf(struct file *file, void *priv,
|
||||
struct v4l2_buffer *buf);
|
||||
int v4l2_m2m_ioctl_prepare_buf(struct file *file, void *priv,
|
||||
struct v4l2_buffer *buf);
|
||||
int v4l2_m2m_ioctl_streamon(struct file *file, void *fh,
|
||||
enum v4l2_buf_type type);
|
||||
int v4l2_m2m_ioctl_streamoff(struct file *file, void *fh,
|
||||
enum v4l2_buf_type type);
|
||||
int v4l2_m2m_ioctl_encoder_cmd(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_streamon(struct file *file, void *priv,
|
||||
enum v4l2_buf_type type);
|
||||
int v4l2_m2m_ioctl_streamoff(struct file *file, void *priv,
|
||||
enum v4l2_buf_type type);
|
||||
int v4l2_m2m_ioctl_encoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_encoder_cmd *ec);
|
||||
int v4l2_m2m_ioctl_decoder_cmd(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_decoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_decoder_cmd *dc);
|
||||
int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_encoder_cmd *ec);
|
||||
int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_decoder_cmd *dc);
|
||||
int v4l2_m2m_ioctl_stateless_try_decoder_cmd(struct file *file, void *fh,
|
||||
int v4l2_m2m_ioctl_stateless_try_decoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_decoder_cmd *dc);
|
||||
int v4l2_m2m_ioctl_stateless_decoder_cmd(struct file *file, void *priv,
|
||||
struct v4l2_decoder_cmd *dc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue