Skip to content

Commit 8ecbde6

Browse files
Hans Verkuilmchehab
authored andcommitted
media: v4l2-subdev.h: keep * together with the type
Having the '*' in the next line separated from the type makes it hard to see that these functions return a pointer to that type. Instead, keep it next to the type name so it is clear that it is a pointer to that type. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent c89ee8e commit 8ecbde6

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

include/media/v4l2-subdev.h

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -930,10 +930,10 @@ struct v4l2_subdev_fh {
930930
* @cfg: pointer to &struct v4l2_subdev_pad_config array.
931931
* @pad: index of the pad in the @cfg array.
932932
*/
933-
static inline struct v4l2_mbus_framefmt
934-
*v4l2_subdev_get_try_format(struct v4l2_subdev *sd,
935-
struct v4l2_subdev_pad_config *cfg,
936-
unsigned int pad)
933+
static inline struct v4l2_mbus_framefmt *
934+
v4l2_subdev_get_try_format(struct v4l2_subdev *sd,
935+
struct v4l2_subdev_pad_config *cfg,
936+
unsigned int pad)
937937
{
938938
if (WARN_ON(pad >= sd->entity.num_pads))
939939
pad = 0;
@@ -948,10 +948,10 @@ static inline struct v4l2_mbus_framefmt
948948
* @cfg: pointer to &struct v4l2_subdev_pad_config array.
949949
* @pad: index of the pad in the @cfg array.
950950
*/
951-
static inline struct v4l2_rect
952-
*v4l2_subdev_get_try_crop(struct v4l2_subdev *sd,
953-
struct v4l2_subdev_pad_config *cfg,
954-
unsigned int pad)
951+
static inline struct v4l2_rect *
952+
v4l2_subdev_get_try_crop(struct v4l2_subdev *sd,
953+
struct v4l2_subdev_pad_config *cfg,
954+
unsigned int pad)
955955
{
956956
if (WARN_ON(pad >= sd->entity.num_pads))
957957
pad = 0;
@@ -966,15 +966,16 @@ static inline struct v4l2_rect
966966
* @cfg: pointer to &struct v4l2_subdev_pad_config array.
967967
* @pad: index of the pad in the @cfg array.
968968
*/
969-
static inline struct v4l2_rect
970-
*v4l2_subdev_get_try_compose(struct v4l2_subdev *sd,
971-
struct v4l2_subdev_pad_config *cfg,
972-
unsigned int pad)
969+
static inline struct v4l2_rect *
970+
v4l2_subdev_get_try_compose(struct v4l2_subdev *sd,
971+
struct v4l2_subdev_pad_config *cfg,
972+
unsigned int pad)
973973
{
974974
if (WARN_ON(pad >= sd->entity.num_pads))
975975
pad = 0;
976976
return &cfg[pad].try_compose;
977977
}
978+
978979
#endif
979980

980981
extern const struct v4l2_file_operations v4l2_subdev_fops;

0 commit comments

Comments
 (0)