From: Emil Velikov <emil.l.velikov@gmail.com>
To: Christophe Fergeau <cfergeau@redhat.com>
Cc: spice-devel@lists.freedesktop.org,
Dave Airlie <airlied@redhat.com>,
ML dri-devel <dri-devel@lists.freedesktop.org>,
Frediano Ziglio <fziglio@redhat.com>
Subject: Re: [Spice-devel] [drm/qxl 5/6] qxl: Don't notify userspace when monitors config is unchanged
Date: Thu, 3 Nov 2016 18:42:38 +0000 [thread overview]
Message-ID: <CACvgo50oiRSjzGPPLXnw2J0q9C-HOyc-N1suONp7a7PLR_knRw@mail.gmail.com> (raw)
In-Reply-To: <20161102163128.oikesemvavdhhcoo@edamame.cdg.redhat.com>
Hi guys,
On 2 November 2016 at 16:31, Christophe Fergeau <cfergeau@redhat.com> wrote:
> Hey,
>
> On Mon, Oct 31, 2016 at 08:00:09AM -0400, Frediano Ziglio wrote:
>> > diff --git a/drivers/gpu/drm/qxl/qxl_display.c
>> > b/drivers/gpu/drm/qxl/qxl_display.c
>> > index 156b7de..edb90f6 100644
>> > --- a/drivers/gpu/drm/qxl/qxl_display.c
>> > +++ b/drivers/gpu/drm/qxl/qxl_display.c
>> > @@ -57,11 +57,18 @@ static void qxl_alloc_client_monitors_config(struct
>> > qxl_device *qdev, unsigned c
>> > qdev->client_monitors_config->count = count;
>> > }
>> >
>> > +enum MonitorsConfigCopyStatus {
>> > + MONITORS_CONFIG_COPIED,
>> > + MONITORS_CONFIG_UNCHANGED,
>> > + MONITORS_CONFIG_BAD_CRC,
>> > +};
>> > +
>>
>> I don't remember exactly kernel style, a
>>
>> typedef enum {
>> MONITORS_CONFIG_COPIED,
>> MONITORS_CONFIG_UNCHANGED,
>> MONITORS_CONFIG_BAD_CRC,
>> } MonitorsConfigCopyStatus;
>>
>> could make following code shorter.
>
> A git grep enum in qxl/ returns a dozen results, none of these using
> typedef, I guess I just followed that style.
>
Kernel coding style advises against both typedefs and CamelCase. We do
have a few "offenders" but it's better to not add more.
Ftw when in doubt do search/grep through the document - I don't thinks
there's many people who've read the thing in one go :-)
Thanks
Emil
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-11-03 18:42 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-28 12:12 [drm/qxl 0/6] Various cleanups/fixes Christophe Fergeau
2016-10-28 12:12 ` [drm/qxl 1/6] qxl: Mark some internal functions as static Christophe Fergeau
2016-10-31 11:28 ` [Spice-devel] " Frediano Ziglio
2016-10-28 12:12 ` [drm/qxl 2/6] qxl: Remove unused prototype Christophe Fergeau
2016-10-31 11:30 ` Frediano Ziglio
2016-10-28 12:12 ` [drm/qxl 3/6] qxl: Add missing '\n' to qxl_io_log() call Christophe Fergeau
2016-10-31 11:29 ` [Spice-devel] " Frediano Ziglio
2016-10-28 12:12 ` [drm/qxl 4/6] qxl: Call qxl_gem_{init,fini} Christophe Fergeau
2016-10-31 11:42 ` [Spice-devel] " Frediano Ziglio
2016-11-02 16:07 ` Christophe Fergeau
2016-10-28 12:12 ` [drm/qxl 5/6] qxl: Don't notify userspace when monitors config is unchanged Christophe Fergeau
2016-10-31 12:00 ` Frediano Ziglio
2016-11-02 16:31 ` [Spice-devel] " Christophe Fergeau
2016-11-02 17:05 ` Christophe Fergeau
2016-11-03 18:42 ` Emil Velikov [this message]
2016-11-04 10:42 ` [Spice-devel] " Christophe Fergeau
2016-10-28 12:12 ` [drm/qxl 6/6] qxl: Allow resolution which are not multiple of 8 Christophe Fergeau
2016-10-31 11:35 ` [Spice-devel] " Frediano Ziglio
2016-10-31 11:49 ` Pavel Grunt
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=CACvgo50oiRSjzGPPLXnw2J0q9C-HOyc-N1suONp7a7PLR_knRw@mail.gmail.com \
--to=emil.l.velikov@gmail.com \
--cc=airlied@redhat.com \
--cc=cfergeau@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=fziglio@redhat.com \
--cc=spice-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).