media: v4l2-subdev.h: keep * together with the type
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 17 Jul 2020 08:08:51 +0000 (10:08 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:26:10 +0000 (14:26 +0200)
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 <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
include/media/v4l2-subdev.h

index 1b83a6c46c1ad751e866ba1d7e71fd06cd06ce6e..b855721879b828238e63ee091bc14cb6b6120021 100644 (file)
@@ -930,10 +930,10 @@ struct v4l2_subdev_fh {
  * @cfg: pointer to &struct v4l2_subdev_pad_config array.
  * @pad: index of the pad in the @cfg array.
  */
-static inline struct v4l2_mbus_framefmt
-*v4l2_subdev_get_try_format(struct v4l2_subdev *sd,
-                           struct v4l2_subdev_pad_config *cfg,
-                           unsigned int pad)
+static inline struct v4l2_mbus_framefmt *
+v4l2_subdev_get_try_format(struct v4l2_subdev *sd,
+                          struct v4l2_subdev_pad_config *cfg,
+                          unsigned int pad)
 {
        if (WARN_ON(pad >= sd->entity.num_pads))
                pad = 0;
@@ -948,10 +948,10 @@ static inline struct v4l2_mbus_framefmt
  * @cfg: pointer to &struct v4l2_subdev_pad_config array.
  * @pad: index of the pad in the @cfg array.
  */
-static inline struct v4l2_rect
-*v4l2_subdev_get_try_crop(struct v4l2_subdev *sd,
-                         struct v4l2_subdev_pad_config *cfg,
-                         unsigned int pad)
+static inline struct v4l2_rect *
+v4l2_subdev_get_try_crop(struct v4l2_subdev *sd,
+                        struct v4l2_subdev_pad_config *cfg,
+                        unsigned int pad)
 {
        if (WARN_ON(pad >= sd->entity.num_pads))
                pad = 0;
@@ -966,15 +966,16 @@ static inline struct v4l2_rect
  * @cfg: pointer to &struct v4l2_subdev_pad_config array.
  * @pad: index of the pad in the @cfg array.
  */
-static inline struct v4l2_rect
-*v4l2_subdev_get_try_compose(struct v4l2_subdev *sd,
-                            struct v4l2_subdev_pad_config *cfg,
-                            unsigned int pad)
+static inline struct v4l2_rect *
+v4l2_subdev_get_try_compose(struct v4l2_subdev *sd,
+                           struct v4l2_subdev_pad_config *cfg,
+                           unsigned int pad)
 {
        if (WARN_ON(pad >= sd->entity.num_pads))
                pad = 0;
        return &cfg[pad].try_compose;
 }
+
 #endif
 
 extern const struct v4l2_file_operations v4l2_subdev_fops;