linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Antti Palosaari <crope@iki.fi>
To: Mauro Carvalho Chehab <mchehab@redhat.com>
Cc: linux-media <linux-media@vger.kernel.org>,
	Patrick Boettcher <pboettcher@kernellabs.com>
Subject: Re: [RFCv1] DVB-USB improvements [alternative 2]
Date: Fri, 25 May 2012 20:48:50 +0300	[thread overview]
Message-ID: <4FBFC602.2060806@iki.fi> (raw)
In-Reply-To: <4FBFC4FD.50108@iki.fi>

On 25.05.2012 20:44, Antti Palosaari wrote:
> I have now implemented some basic stuff. Most interesting is new way of
> map device id and properties for it. I found that I can use .driver_info
> field from the (struct usb_device_id) to carry pointer. I used it to
> carry all the other data to the DVB USB core. Thus that one big issue is
> now resolved. It reduces something like 8-9 kB of binary size which is
> huge improvement. Same will happen for every driver using multiple
> (struct dvb_usb_device_properties) - for more you are used more you save.

Argh, reduces 8-9kB from the *af9015* as it was defining three (struct 
dvb_usb_device_properties). Also line count reduces 350 lines and will 
reduce some more after all those planned callbacks are done.

> Here is 3 example drivers I have converted to that new style:
> http://palosaari.fi/linux/v4l-dvb/dvb-usb-2012-05-25/

Antti
-- 
http://palosaari.fi/

  reply	other threads:[~2012-05-25 17:48 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-20 20:55 [RFCv1] DVB-USB improvements [alternative 2] Antti Palosaari
2012-05-20 22:30 ` VDR User
2012-05-20 23:10   ` Devin Heitmueller
2012-05-21  0:36     ` VDR User
2012-05-21  2:22       ` Antti Palosaari
2012-05-21  2:42         ` VDR User
2012-05-21  3:20           ` Antti Palosaari
2012-05-21  3:44             ` Mauro Carvalho Chehab
2012-05-21  3:50 ` Mauro Carvalho Chehab
2012-05-25 17:44   ` Antti Palosaari
2012-05-25 17:48     ` Antti Palosaari [this message]
2012-05-25 18:32     ` Mauro Carvalho Chehab
2012-05-25 18:38       ` Mauro Carvalho Chehab
2012-05-25 18:51       ` Antti Palosaari

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=4FBFC602.2060806@iki.fi \
    --to=crope@iki.fi \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@redhat.com \
    --cc=pboettcher@kernellabs.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).