mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
media: subdev: rename subdev-state alloc & free
v4l2_subdev_alloc_state() and v4l2_subdev_free_state() are not supposed to be used by the drivers. However, we do have a few drivers that use those at the moment, so we need to expose these functions for the time being. Prefix the functions with __ to mark the functions as internal. At the same time, rename them to v4l2_subdev_state_alloc and v4l2_subdev_state_free to match the style used for other functions like video_device_alloc() and media_request_alloc(). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
e550c37092
commit
40aaab9d77
@@ -1122,20 +1122,24 @@ int v4l2_subdev_link_validate_default(struct v4l2_subdev *sd,
|
||||
int v4l2_subdev_link_validate(struct media_link *link);
|
||||
|
||||
/**
|
||||
* v4l2_subdev_alloc_state - allocate v4l2_subdev_state
|
||||
* __v4l2_subdev_state_alloc - allocate v4l2_subdev_state
|
||||
*
|
||||
* @sd: pointer to &struct v4l2_subdev for which the state is being allocated.
|
||||
*
|
||||
* Must call v4l2_subdev_free_state() when state is no longer needed.
|
||||
* Must call __v4l2_subdev_state_free() when state is no longer needed.
|
||||
*
|
||||
* Not to be called directly by the drivers.
|
||||
*/
|
||||
struct v4l2_subdev_state *v4l2_subdev_alloc_state(struct v4l2_subdev *sd);
|
||||
struct v4l2_subdev_state *__v4l2_subdev_state_alloc(struct v4l2_subdev *sd);
|
||||
|
||||
/**
|
||||
* v4l2_subdev_free_state - free a v4l2_subdev_state
|
||||
* __v4l2_subdev_state_free - free a v4l2_subdev_state
|
||||
*
|
||||
* @state: v4l2_subdev_state to be freed.
|
||||
*
|
||||
* Not to be called directly by the drivers.
|
||||
*/
|
||||
void v4l2_subdev_free_state(struct v4l2_subdev_state *state);
|
||||
void __v4l2_subdev_state_free(struct v4l2_subdev_state *state);
|
||||
|
||||
#endif /* CONFIG_MEDIA_CONTROLLER */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user