From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mo3.mail-out.ovh.net ([178.32.228.3]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TUfPP-0007SE-LX for barebox@lists.infradead.org; Sat, 03 Nov 2012 15:13:17 +0000 Received: from mail422.ha.ovh.net (b9.ovh.net [213.186.33.59]) by mo3.mail-out.ovh.net (Postfix) with SMTP id 0821EFFB580 for ; Sat, 3 Nov 2012 16:23:26 +0100 (CET) From: Jean-Christophe PLAGNIOL-VILLARD Date: Sat, 3 Nov 2012 16:11:04 +0100 Message-Id: <1351955465-12206-1-git-send-email-plagnioj@jcrosoft.com> In-Reply-To: <20121103150823.GY29599@game.jcrosoft.org> References: <20121103150823.GY29599@game.jcrosoft.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] bus_for_each_device/bus_for_each_driver: add () to allow use &bus To: barebox@lists.infradead.org Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- include/driver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/driver.h b/include/driver.h index 4918054..dd22c77 100644 --- a/include/driver.h +++ b/include/driver.h @@ -393,11 +393,11 @@ extern struct list_head bus_list; /* Iterate over all devices of a bus */ -#define bus_for_each_device(bus, dev) list_for_each_entry(dev, &bus->device_list, bus_list) +#define bus_for_each_device(bus, dev) list_for_each_entry(dev, &(bus)->device_list, bus_list) /* Iterate over all drivers of a bus */ -#define bus_for_each_driver(bus, drv) list_for_each_entry(drv, &bus->driver_list, bus_list) +#define bus_for_each_driver(bus, drv) list_for_each_entry(drv, &(bus)->driver_list, bus_list) extern struct bus_type platform_bus; -- 1.7.10.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox