media: v4l: subdev: Rename sub-device state information access functions
Rename the sub-devices state information access functions, removing "_stream" from them and replacing "format" by "ffmt". This makes them shorter and so more convenient to use. No other sets of functions will be needed to access this information. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
049fa16b81
commit
d0fde6aae2
@@ -1535,7 +1535,7 @@ int v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd,
|
||||
const struct v4l2_mbus_framefmt *fmt);
|
||||
|
||||
/**
|
||||
* v4l2_subdev_state_get_stream_format() - Get pointer to a stream format
|
||||
* v4l2_subdev_state_get_format() - Get pointer to a stream format
|
||||
* @state: subdevice state
|
||||
* @pad: pad id
|
||||
* @stream: stream id
|
||||
@@ -1547,11 +1547,11 @@ int v4l2_subdev_set_routing_with_fmt(struct v4l2_subdev *sd,
|
||||
* If the pad does not exist, NULL is returned.
|
||||
*/
|
||||
struct v4l2_mbus_framefmt *
|
||||
v4l2_subdev_state_get_stream_format(struct v4l2_subdev_state *state,
|
||||
unsigned int pad, u32 stream);
|
||||
v4l2_subdev_state_get_format(struct v4l2_subdev_state *state, unsigned int pad,
|
||||
u32 stream);
|
||||
|
||||
/**
|
||||
* v4l2_subdev_state_get_stream_crop() - Get pointer to a stream crop rectangle
|
||||
* v4l2_subdev_state_get_crop() - Get pointer to a stream crop rectangle
|
||||
* @state: subdevice state
|
||||
* @pad: pad id
|
||||
* @stream: stream id
|
||||
@@ -1563,12 +1563,11 @@ v4l2_subdev_state_get_stream_format(struct v4l2_subdev_state *state,
|
||||
* returned. If the pad does not exist, NULL is returned.
|
||||
*/
|
||||
struct v4l2_rect *
|
||||
v4l2_subdev_state_get_stream_crop(struct v4l2_subdev_state *state,
|
||||
unsigned int pad, u32 stream);
|
||||
v4l2_subdev_state_get_crop(struct v4l2_subdev_state *state, unsigned int pad,
|
||||
u32 stream);
|
||||
|
||||
/**
|
||||
* v4l2_subdev_state_get_stream_compose() - Get pointer to a stream compose
|
||||
* rectangle
|
||||
* v4l2_subdev_state_get_compose() - Get pointer to a stream compose rectangle
|
||||
* @state: subdevice state
|
||||
* @pad: pad id
|
||||
* @stream: stream id
|
||||
@@ -1580,8 +1579,8 @@ v4l2_subdev_state_get_stream_crop(struct v4l2_subdev_state *state,
|
||||
* returned. If the pad does not exist, NULL is returned.
|
||||
*/
|
||||
struct v4l2_rect *
|
||||
v4l2_subdev_state_get_stream_compose(struct v4l2_subdev_state *state,
|
||||
unsigned int pad, u32 stream);
|
||||
v4l2_subdev_state_get_compose(struct v4l2_subdev_state *state, unsigned int pad,
|
||||
u32 stream);
|
||||
|
||||
/**
|
||||
* v4l2_subdev_routing_find_opposite_end() - Find the opposite stream
|
||||
|
||||
Reference in New Issue
Block a user