public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Jarod Wilson <jarod@wilsonet.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>
Subject: Re: [PATCH 4/4] [media] mceusb: Fix parser for Polaris
Date: Thu, 21 Oct 2010 19:24:19 -0200	[thread overview]
Message-ID: <4CC0AF83.7010300@redhat.com> (raw)
In-Reply-To: <0D654DD3-FC88-41F2-B8BD-04ED85FDC830@wilsonet.com>

Em 21-10-2010 19:06, Jarod Wilson escreveu:
> On Oct 21, 2010, at 4:38 PM, Mauro Carvalho Chehab wrote:
> 
>> Em 21-10-2010 18:06, Jarod Wilson escreveu:

>>>> @@ -265,6 +265,7 @@ struct mceusb_dev {
>>>> 		u32 connected:1;
>>>> 		u32 tx_mask_inverted:1;
>>>> 		u32 microsoft_gen1:1;
>>>> +		u32 is_polaris:1;
>>>> 		u32 reserved:29;
>>>
>>> reserved should be decremented by 1 here if adding another flag.
>>
>> Ok. By curiosity, why are you reserving space on a bit array like that?
> 
> Legacy, mostly, I guess. Its been that way going back ages. I suppose we could just convert them all to bools and/or leave them as is and drop the reserved part entirely...

Agreed. If this is not part of any kabi (and it isn't, as far as I see), we can just
drop the reserved, as gcc will pad it accordingly.

> Yeah, this sorta grew from merging the old lirc_mceusb and lirc_mceusb2 drivers into one, and believe it or not, its actually cleaner than it used to be... :)
> 
> You've got a test patch in your inbox that attempts to merge the logic in this patch into the existing loop, and I'll see if I can beat on it with all three generations of stand-alone mceusb devices tonight...
> 

I'll do some tests and send you a feedback.

Cheers,
Mauro

      reply	other threads:[~2010-10-21 21:24 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1287669886.git.mchehab@redhat.com>
2010-10-21 14:07 ` [PATCH 1/4] [media] cx231xx: Fix compilation breakage if DVB is not selected Mauro Carvalho Chehab
2010-10-21 15:23   ` Jarod Wilson
2010-10-21 14:07 ` [PATCH 2/4] [media] ir-raw-event: Fix a stupid error at a printk Mauro Carvalho Chehab
2010-10-21 15:23   ` Jarod Wilson
2010-10-21 14:07 ` [PATCH 3/4] [media] mceusb: Improve parser to get codes sent together with IR RX data Mauro Carvalho Chehab
2010-10-21 18:53   ` Jarod Wilson
2010-10-21 14:07 ` [PATCH 4/4] [media] mceusb: Fix parser for Polaris Mauro Carvalho Chehab
2010-10-21 20:06   ` Jarod Wilson
2010-10-21 20:38     ` Mauro Carvalho Chehab
2010-10-21 21:06       ` Jarod Wilson
2010-10-21 21:24         ` Mauro Carvalho Chehab [this message]

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=4CC0AF83.7010300@redhat.com \
    --to=mchehab@redhat.com \
    --cc=jarod@wilsonet.com \
    --cc=linux-media@vger.kernel.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