lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ