dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Stefan Christ <contact@stefanchrist.eu>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 01/20] drm/fb-helper: add DRM_FB_HELPER_DEFAULT_OPS for fb_ops
Date: Fri, 30 Sep 2016 12:17:08 +0200	[thread overview]
Message-ID: <20160930101708.GM25432@dvetter-linux.ger.corp.intel.com> (raw)
In-Reply-To: <1475182136-15191-2-git-send-email-contact@stefanchrist.eu>

On Thu, Sep 29, 2016 at 10:48:37PM +0200, Stefan Christ wrote:
> The define DRM_FB_HELPER_DEFAULT_OPS provides the drm_fb_helper default
> implementations for functions in struct fb_ops. A drm driver can use it
> like:
> 
>     static struct fb_ops drm_fbdev_cma_ops = {
>         .owner          = THIS_MODULE,
>         DRM_FB_HELPER_DEFAULT_OPS,
>         /* driver specific implementations */
>     };
> 
> Suggested-by: Daniel Vetter <daniel@ffwll.ch>
> Signed-off-by: Stefan Christ <contact@stefanchrist.eu>

Applied just this one for 4.9. I think I'll postpone the others to 4.10.
-Daniel

> ---
>  include/drm/drm_fb_helper.h | 13 +++++++++++++
>  1 file changed, 13 insertions(+)
> 
> diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h
> index db8d478..b76f5c7 100644
> --- a/include/drm/drm_fb_helper.h
> +++ b/include/drm/drm_fb_helper.h
> @@ -214,6 +214,19 @@ struct drm_fb_helper {
>  	bool delayed_hotplug;
>  };
>  
> +/**
> + * @DRM_FB_HELPER_DEFAULT_OPS:
> + *
> + * Helper define to register default implementations of drm_fb_helper
> + * functions. To be used in struct fb_ops of drm drivers.
> + */
> +#define DRM_FB_HELPER_DEFAULT_OPS \
> +	.fb_check_var	= drm_fb_helper_check_var, \
> +	.fb_set_par	= drm_fb_helper_set_par, \
> +	.fb_setcmap	= drm_fb_helper_setcmap, \
> +	.fb_blank	= drm_fb_helper_blank, \
> +	.fb_pan_display	= drm_fb_helper_pan_display
> +
>  #ifdef CONFIG_DRM_FBDEV_EMULATION
>  int drm_fb_helper_modinit(void);
>  void drm_fb_helper_prepare(struct drm_device *dev, struct drm_fb_helper *helper,
> -- 
> 2.7.3
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2016-09-30 10:17 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-29 20:48 [PATCH 00/20] Introduce DRM_FB_HELPER_DEFAULT_OPS for struct fb_ops Stefan Christ
2016-09-29 20:48 ` [PATCH 01/20] drm/fb-helper: add DRM_FB_HELPER_DEFAULT_OPS for fb_ops Stefan Christ
2016-09-30 10:17   ` Daniel Vetter [this message]
2016-09-29 20:48 ` [PATCH 02/20] drm/amdgpu: use " Stefan Christ
2016-10-25 14:52   ` Daniel Vetter
2016-09-29 20:48 ` [PATCH 03/20] drm/armada: " Stefan Christ
2016-09-29 20:48 ` [PATCH 04/20] drm/ast: " Stefan Christ
2016-10-25 14:57   ` Daniel Vetter
2016-10-26 18:47     ` Stefan Lengfeld
2016-10-26 19:15       ` Daniel Vetter
2016-11-08 17:12         ` Daniel Vetter
2016-11-09 21:33           ` Stefan Lengfeld
2016-09-29 20:48 ` [PATCH 05/20] drm/bochs: " Stefan Christ
2016-09-29 20:48 ` [PATCH 06/20] drm/cirrus: " Stefan Christ
2016-09-29 20:48 ` [PATCH 07/20] drm/fb_cma_helper: " Stefan Christ
2016-09-29 20:48 ` [PATCH 08/20] drm/exynos: " Stefan Christ
2016-09-30 15:34   ` Inki Dae
2016-09-29 20:48 ` [PATCH 09/20] drm/mgag200: " Stefan Christ
2016-09-29 20:48 ` [PATCH 10/20] drm/nouveau: " Stefan Christ
2016-09-29 20:48 ` [PATCH 11/20] drm/qxl: " Stefan Christ
2016-09-29 20:48 ` [PATCH 12/20] drm/rockchip: " Stefan Christ
2016-09-29 20:48 ` [PATCH 13/20] drm/radeon: " Stefan Christ
2016-09-29 20:48 ` [PATCH 14/20] drm/tegra: " Stefan Christ
2016-09-29 20:48 ` [PATCH 15/20] drm/udl: " Stefan Christ
2016-09-29 20:48 ` [PATCH 16/20] drm/msm: " Stefan Christ
2016-09-29 20:48 ` [PATCH 17/20] drm/virtio: " Stefan Christ
2016-09-29 20:48 ` [PATCH 18/20] drm/omapdrm: " Stefan Christ
2016-09-29 20:48 ` [PATCH 19/20] drm/i915: " Stefan Christ
2016-09-29 20:48 ` [PATCH 20/20] drm/gma500: " Stefan Christ
2016-09-30  9:08 ` [PATCH 00/20] Introduce DRM_FB_HELPER_DEFAULT_OPS for struct fb_ops Gustavo Padovan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160930101708.GM25432@dvetter-linux.ger.corp.intel.com \
    --to=daniel@ffwll.ch \
    --cc=contact@stefanchrist.eu \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).