dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: Emil Velikov <emil.l.velikov@gmail.com>
To: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/omap: remove open-coded drm_invalid_op()
Date: Tue, 28 May 2019 16:41:23 +0100	[thread overview]
Message-ID: <20190528154123.GA2768@arch-x1c3> (raw)
In-Reply-To: <7f87a082-8b38-e46a-50bb-51a26efc4ab2@ti.com>

On 2019/05/28, Tomi Valkeinen wrote:
> On 22/05/2019 18:02, Emil Velikov wrote:
> > From: Emil Velikov <emil.velikov@collabora.com>
> > 
> > Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
> > Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
> > ---
> >   drivers/gpu/drm/omapdrm/omap_drv.c | 16 +---------------
> >   1 file changed, 1 insertion(+), 15 deletions(-)
> > 
> > diff --git a/drivers/gpu/drm/omapdrm/omap_drv.c b/drivers/gpu/drm/omapdrm/omap_drv.c
> > index 1b9b6f5e48e1..672e0f8ad11c 100644
> > --- a/drivers/gpu/drm/omapdrm/omap_drv.c
> > +++ b/drivers/gpu/drm/omapdrm/omap_drv.c
> > @@ -439,20 +439,6 @@ static int ioctl_get_param(struct drm_device *dev, void *data,
> >   	return 0;
> >   }
> > -static int ioctl_set_param(struct drm_device *dev, void *data,
> > -		struct drm_file *file_priv)
> > -{
> > -	struct drm_omap_param *args = data;
> > -
> > -	switch (args->param) {
> > -	default:
> > -		DBG("unknown parameter %lld", args->param);
> > -		return -EINVAL;
> > -	}
> > -
> > -	return 0;
> > -}
> > -
> >   #define OMAP_BO_USER_MASK	0x00ffffff	/* flags settable by userspace */
> >   static int ioctl_gem_new(struct drm_device *dev, void *data,
> > @@ -492,7 +478,7 @@ static int ioctl_gem_info(struct drm_device *dev, void *data,
> >   static const struct drm_ioctl_desc ioctls[DRM_COMMAND_END - DRM_COMMAND_BASE] = {
> >   	DRM_IOCTL_DEF_DRV(OMAP_GET_PARAM, ioctl_get_param,
> >   			  DRM_AUTH | DRM_RENDER_ALLOW),
> > -	DRM_IOCTL_DEF_DRV(OMAP_SET_PARAM, ioctl_set_param,
> > +	DRM_IOCTL_DEF_DRV(OMAP_SET_PARAM, drm_invalid_op,
> >   			  DRM_AUTH | DRM_MASTER | DRM_ROOT_ONLY),
> >   	DRM_IOCTL_DEF_DRV(OMAP_GEM_NEW, ioctl_gem_new,
> >   			  DRM_AUTH | DRM_RENDER_ALLOW),
> > 
> 
> Thanks! Do you want to take this via drm-misc too, or can I pick it up?
> 
Hoping to pick this via drm-misc, albeit I forgot to mention earlier.

Thanks
Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2019-05-28 15:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-22 15:02 [PATCH 1/2] drm/omap: remove open-coded drm_invalid_op() Emil Velikov
2019-05-22 15:02 ` [PATCH 2/2] drm/nouveau: " Emil Velikov
     [not found]   ` <20190522150219.13913-2-emil.l.velikov-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2019-05-23  0:19     ` Ben Skeggs
     [not found]       ` <CACAvsv5Z7CZOirZrRB=88rCeZt0SvBvdDjbhSpOcfE9JA20hCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2019-05-24 15:14         ` Emil Velikov
2019-05-27  6:03           ` Ben Skeggs
2019-08-06  9:42       ` Emil Velikov
2019-05-28 10:54 ` [PATCH 1/2] drm/omap: " Tomi Valkeinen
2019-05-28 15:41   ` Emil Velikov [this message]
2019-05-28 16:49     ` Tomi Valkeinen

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=20190528154123.GA2768@arch-x1c3 \
    --to=emil.l.velikov@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=tomi.valkeinen@ti.com \
    /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).