diff options
| author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-01-17 11:50:10 -0500 |
|---|---|---|
| committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-03-20 08:30:21 -0400 |
| commit | 2a438c5b4e398e42cdc8aa2d16badc6fbcf8aeb5 (patch) | |
| tree | ab4a4a8060db9323efeaf999f7494ab54c6588e7 /drivers/gpu/drm/omapdrm | |
| parent | 8472b5708ebaabf4568fe53672db7567e94c4c65 (diff) | |
drm: omapdrm: Prefix all plane functions with omap_plane_
This matches the rest of the file and clarifies the functions' purpose.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm')
| -rw-r--r-- | drivers/gpu/drm/omapdrm/omap_plane.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c index 2111d415da96..309a2246b6e0 100644 --- a/drivers/gpu/drm/omapdrm/omap_plane.c +++ b/drivers/gpu/drm/omapdrm/omap_plane.c | |||
| @@ -65,7 +65,7 @@ struct omap_plane { | |||
| 65 | struct callback apply_done_cb; | 65 | struct callback apply_done_cb; |
| 66 | }; | 66 | }; |
| 67 | 67 | ||
| 68 | static void unpin_worker(struct drm_flip_work *work, void *val) | 68 | static void omap_plane_unpin_worker(struct drm_flip_work *work, void *val) |
| 69 | { | 69 | { |
| 70 | struct omap_plane *omap_plane = | 70 | struct omap_plane *omap_plane = |
| 71 | container_of(work, struct omap_plane, unpin_work); | 71 | container_of(work, struct omap_plane, unpin_work); |
| @@ -78,7 +78,8 @@ static void unpin_worker(struct drm_flip_work *work, void *val) | |||
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | /* update which fb (if any) is pinned for scanout */ | 80 | /* update which fb (if any) is pinned for scanout */ |
| 81 | static int update_pin(struct drm_plane *plane, struct drm_framebuffer *fb) | 81 | static int omap_plane_update_pin(struct drm_plane *plane, |
| 82 | struct drm_framebuffer *fb) | ||
| 82 | { | 83 | { |
| 83 | struct omap_plane *omap_plane = to_omap_plane(plane); | 84 | struct omap_plane *omap_plane = to_omap_plane(plane); |
| 84 | struct drm_framebuffer *pinned_fb = omap_plane->pinned_fb; | 85 | struct drm_framebuffer *pinned_fb = omap_plane->pinned_fb; |
| @@ -126,7 +127,7 @@ static void omap_plane_pre_apply(struct omap_drm_apply *apply) | |||
| 126 | DBG("%s, enabled=%d", omap_plane->name, enabled); | 127 | DBG("%s, enabled=%d", omap_plane->name, enabled); |
| 127 | 128 | ||
| 128 | /* if fb has changed, pin new fb: */ | 129 | /* if fb has changed, pin new fb: */ |
| 129 | update_pin(plane, enabled ? plane->fb : NULL); | 130 | omap_plane_update_pin(plane, enabled ? plane->fb : NULL); |
| 130 | 131 | ||
| 131 | if (!enabled) { | 132 | if (!enabled) { |
| 132 | dispc_ovl_enable(omap_plane->id, false); | 133 | dispc_ovl_enable(omap_plane->id, false); |
| @@ -173,7 +174,7 @@ static void omap_plane_post_apply(struct omap_drm_apply *apply) | |||
| 173 | cb.fxn(cb.arg); | 174 | cb.fxn(cb.arg); |
| 174 | } | 175 | } |
| 175 | 176 | ||
| 176 | static int apply(struct drm_plane *plane) | 177 | static int omap_plane_apply(struct drm_plane *plane) |
| 177 | { | 178 | { |
| 178 | if (plane->crtc) { | 179 | if (plane->crtc) { |
| 179 | struct omap_plane *omap_plane = to_omap_plane(plane); | 180 | struct omap_plane *omap_plane = to_omap_plane(plane); |
| @@ -214,7 +215,7 @@ int omap_plane_mode_set(struct drm_plane *plane, | |||
| 214 | omap_plane->apply_done_cb.arg = arg; | 215 | omap_plane->apply_done_cb.arg = arg; |
| 215 | } | 216 | } |
| 216 | 217 | ||
| 217 | return apply(plane); | 218 | return omap_plane_apply(plane); |
| 218 | } | 219 | } |
| 219 | 220 | ||
| 220 | static int omap_plane_update(struct drm_plane *plane, | 221 | static int omap_plane_update(struct drm_plane *plane, |
| @@ -283,7 +284,7 @@ int omap_plane_set_enable(struct drm_plane *plane, bool enable) | |||
| 283 | return 0; | 284 | return 0; |
| 284 | 285 | ||
| 285 | omap_plane->enabled = enable; | 286 | omap_plane->enabled = enable; |
| 286 | return apply(plane); | 287 | return omap_plane_apply(plane); |
| 287 | } | 288 | } |
| 288 | 289 | ||
| 289 | /* helper to install properties which are common to planes and crtcs */ | 290 | /* helper to install properties which are common to planes and crtcs */ |
| @@ -331,11 +332,11 @@ int omap_plane_set_property(struct drm_plane *plane, | |||
| 331 | if (property == priv->rotation_prop) { | 332 | if (property == priv->rotation_prop) { |
| 332 | DBG("%s: rotation: %02x", omap_plane->name, (uint32_t)val); | 333 | DBG("%s: rotation: %02x", omap_plane->name, (uint32_t)val); |
| 333 | omap_plane->win.rotation = val; | 334 | omap_plane->win.rotation = val; |
| 334 | ret = apply(plane); | 335 | ret = omap_plane_apply(plane); |
| 335 | } else if (property == priv->zorder_prop) { | 336 | } else if (property == priv->zorder_prop) { |
| 336 | DBG("%s: zorder: %02x", omap_plane->name, (uint32_t)val); | 337 | DBG("%s: zorder: %02x", omap_plane->name, (uint32_t)val); |
| 337 | omap_plane->info.zorder = val; | 338 | omap_plane->info.zorder = val; |
| 338 | ret = apply(plane); | 339 | ret = omap_plane_apply(plane); |
| 339 | } | 340 | } |
| 340 | 341 | ||
| 341 | return ret; | 342 | return ret; |
| @@ -386,7 +387,7 @@ struct drm_plane *omap_plane_init(struct drm_device *dev, | |||
| 386 | return ERR_PTR(-ENOMEM); | 387 | return ERR_PTR(-ENOMEM); |
| 387 | 388 | ||
| 388 | drm_flip_work_init(&omap_plane->unpin_work, | 389 | drm_flip_work_init(&omap_plane->unpin_work, |
| 389 | "unpin", unpin_worker); | 390 | "unpin", omap_plane_unpin_worker); |
| 390 | 391 | ||
| 391 | omap_plane->nformats = omap_framebuffer_get_formats( | 392 | omap_plane->nformats = omap_framebuffer_get_formats( |
| 392 | omap_plane->formats, ARRAY_SIZE(omap_plane->formats), | 393 | omap_plane->formats, ARRAY_SIZE(omap_plane->formats), |
