[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20100826183850.GB24381@opensource.wolfsonmicro.com>
Date: Thu, 26 Aug 2010 19:38:50 +0100
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Anton Vorontsov <cbouatmailru@...il.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>,
Samuel Ortiz <sameo@...ux.intel.com>,
David Brownell <dbrownell@...rs.sourceforge.net>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] gpio: Add generic driver for simple memory mapped
controllers
On Wed, Aug 25, 2010 at 11:42:49PM +0400, Anton Vorontsov wrote:
> + res_dat = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> + if (!res_dat)
> + return -EINVAL;
I'd suggest naming these resources rather than grabbing by number,
that'll make it easier to plumb the machine driver side in since you
don't have to remember which number corresponds to which function.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists