[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20120117104153.GA2944@opensource.wolfsonmicro.com>
Date: Tue, 17 Jan 2012 10:41:53 +0000
From: Mark Brown <broonie@...nsource.wolfsonmicro.com>
To: Stephen Boyd <sboyd@...eaurora.org>
Cc: Liam Girdwood <lrg@...com>, linux-kernel@...r.kernel.org,
linux-doc@...r.kernel.org
Subject: Re: [PATCH] regulator: Add devm_regulator_get()
On Mon, Jan 16, 2012 at 07:39:58PM -0800, Stephen Boyd wrote:
> Add a resource managed regulator_get() to simplify regulator
> usage in drivers. This allows driver authors to "get and forget"
> about their regulators by automatically calling regulator_put()
> when the driver is detached.
So, I've gone ahead and applied this as it's obviously useful as-is but
it's obviously something that should have a bulk version - I'll probably
add that myself. We really ought to have release functions too in case
something wants to release the resource earlier, though I can't think
where you'd actually use those.
--
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