Skip to content

Commit b54a093

Browse files
thierryredingdanvet
authored andcommitted
drm/plane: Remove redundant extern
Use of the extern keyword for function prototypes is unnecessary, so it can be removed. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent 45e3743 commit b54a093

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

include/drm/drm_plane_helper.h

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343
* planes.
4444
*/
4545

46-
extern int drm_crtc_init(struct drm_device *dev,
47-
struct drm_crtc *crtc,
48-
const struct drm_crtc_funcs *funcs);
46+
int drm_crtc_init(struct drm_device *dev, struct drm_crtc *crtc,
47+
const struct drm_crtc_funcs *funcs);
4948

5049
/**
5150
* drm_plane_helper_funcs - helper operations for CRTCs
@@ -79,26 +78,26 @@ static inline void drm_plane_helper_add(struct drm_plane *plane,
7978
plane->helper_private = funcs;
8079
}
8180

82-
extern int drm_plane_helper_check_update(struct drm_plane *plane,
83-
struct drm_crtc *crtc,
84-
struct drm_framebuffer *fb,
85-
struct drm_rect *src,
86-
struct drm_rect *dest,
87-
const struct drm_rect *clip,
88-
int min_scale,
89-
int max_scale,
90-
bool can_position,
91-
bool can_update_disabled,
92-
bool *visible);
93-
extern int drm_primary_helper_update(struct drm_plane *plane,
94-
struct drm_crtc *crtc,
95-
struct drm_framebuffer *fb,
96-
int crtc_x, int crtc_y,
97-
unsigned int crtc_w, unsigned int crtc_h,
98-
uint32_t src_x, uint32_t src_y,
99-
uint32_t src_w, uint32_t src_h);
100-
extern int drm_primary_helper_disable(struct drm_plane *plane);
101-
extern void drm_primary_helper_destroy(struct drm_plane *plane);
81+
int drm_plane_helper_check_update(struct drm_plane *plane,
82+
struct drm_crtc *crtc,
83+
struct drm_framebuffer *fb,
84+
struct drm_rect *src,
85+
struct drm_rect *dest,
86+
const struct drm_rect *clip,
87+
int min_scale,
88+
int max_scale,
89+
bool can_position,
90+
bool can_update_disabled,
91+
bool *visible);
92+
int drm_primary_helper_update(struct drm_plane *plane,
93+
struct drm_crtc *crtc,
94+
struct drm_framebuffer *fb,
95+
int crtc_x, int crtc_y,
96+
unsigned int crtc_w, unsigned int crtc_h,
97+
uint32_t src_x, uint32_t src_y,
98+
uint32_t src_w, uint32_t src_h);
99+
int drm_primary_helper_disable(struct drm_plane *plane);
100+
void drm_primary_helper_destroy(struct drm_plane *plane);
102101
extern const struct drm_plane_funcs drm_primary_helper_funcs;
103102

104103
int drm_plane_helper_update(struct drm_plane *plane, struct drm_crtc *crtc,

0 commit comments

Comments
 (0)