Re: [PATCH 1/2] regulators: Add definition of regulator_set_voltage_time() for !CONFIG_REGULATOR
From: Mark Brown
Date: Mon Jun 02 2014 - 05:51:39 EST
On Mon, Jun 02, 2014 at 12:50:59PM +0530, Viresh Kumar wrote:
> On 28 May 2014 23:08, Mark Brown <broonie@xxxxxxxxxx> wrote:
> > Whatever - I don't think the particular code makes any practical
> > difference. We would need to audit existing users who don't have a
> > REGULATOR dependency for breakage though.
> I tried auditing all 29 files which had this symbol: regulator_set_voltage
> and couldn't find anything which might break with the proposed change.
> Either these are making sure that we have a valid regulator or they have
> code inside #ifdef CONFIG_REGULATOR ..
When you say they check for a valid regulator how are they doing that?
The stub will come into play if there isn't a dependency on REGULATOR.
Attachment:
signature.asc
Description: Digital signature