diff options
author | Stefan Agner <stefan@agner.ch> | 2016-02-11 17:28:32 -0800 |
---|---|---|
committer | Stefan Agner <stefan@agner.ch> | 2016-02-11 18:07:18 -0800 |
commit | 4781cbb343706f816b3e388574265a4656c30ae0 (patch) | |
tree | 3391633b02171c8fffd83176c9fd95c897844fd8 /drivers/gpu/drm | |
parent | 96f62b1cc70c104573712aeb8a33ce4350a95794 (diff) |
drm: add drm_fbdev_cma_get_helper
Add helper to get the drm_fb_helper struct of a CMA framebuffer
object (struct drm_fbdev_cma). This is useful to use other
fb_helper functions like drm_fb_helper_set_suspend.
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/drm_fb_cma_helper.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c b/drivers/gpu/drm/drm_fb_cma_helper.c index c19a62561183..1ee7bb9cbcde 100644 --- a/drivers/gpu/drm/drm_fb_cma_helper.c +++ b/drivers/gpu/drm/drm_fb_cma_helper.c @@ -369,6 +369,18 @@ err_free: EXPORT_SYMBOL_GPL(drm_fbdev_cma_init); /** + * drm_fbdev_cma_get_helper() - Get drm_fb_helper struct of a CMA framebuffer + * @fbdev_cma: drm_fbdev_cma struct + * + * Returns the assigned drm_fb_helper struct. + */ +struct drm_fb_helper *drm_fbdev_cma_get_helper(struct drm_fbdev_cma *fbdev_cma) +{ + return &fbdev_cma->fb_helper; +} +EXPORT_SYMBOL_GPL(drm_fbdev_cma_get_helper); + +/** * drm_fbdev_cma_fini() - Free drm_fbdev_cma struct * @fbdev_cma: The drm_fbdev_cma struct */ |