mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 2/2] driver: search device and driver based on the bus instead of all
Date: Wed, 19 Sep 2012 19:25:29 +0200	[thread overview]
Message-ID: <20120919172529.GJ6180@pengutronix.de> (raw)
In-Reply-To: <1348061997-16901-2-git-send-email-plagnioj@jcrosoft.com>

On Wed, Sep 19, 2012 at 03:39:57PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
> This will allow reduce the number of driver and device to search on.
> 
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
> ---
>  drivers/base/driver.c |    9 +++++----
>  include/driver.h      |   12 ++++++++++++
>  2 files changed, 17 insertions(+), 4 deletions(-)
> 

[...]

>  
> +/* Iterate over all devices of a bus
> + */
> +#define for_each_bus_device(bus, dev) list_for_each_entry(dev, &bus->device_list, list)
> +
> +/* Iterate over all drivers of a bus
> + */
> +#define for_each_bus_driver(bus, drv) list_for_each_entry(drv, &bus->driver_list, list)
> +

bus_for_each_* please.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2012-09-19 17:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-19 13:39 [PATCH 1/2] driver: register bus Jean-Christophe PLAGNIOL-VILLARD
2012-09-19 13:39 ` [PATCH 2/2] driver: search device and driver based on the bus instead of all Jean-Christophe PLAGNIOL-VILLARD
2012-09-19 17:25   ` Sascha Hauer [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=20120919172529.GJ6180@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=plagnioj@jcrosoft.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