[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAF+7xWnf6QMg5QeXyoRJH76xjprGW7B3pMXeS-f=uiwPdsMoLQ@mail.gmail.com>
Date: Tue, 24 Apr 2012 20:35:09 +0800
From: Axel Lin <axel.lin@...il.com>
To: "Kim, Milo" <Milo.Kim@...com>
Cc: Mark Brown <broonie@...nsource.wolfsonmicro.com>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Shreshtha Kumar Sahu <shreshthakumar.sahu@...ricsson.com>,
Richard Purdie <rpurdie@...ys.net>,
Andrew Morton <akpm@...ux-foundation.org>,
"Girdwood, Liam" <lrg@...com>
Subject: Re: [PATCH] leds: lm3530: fix handling of already enabled regulators
> Could you explain what 'enabled on boot' means ?
> 1) The regulator_enable() is called in initial time
> or
> 2) boot_on = 1 in regulator_init_data ?
>
> If you mean 'boot_on = 1' in regulator_init_data, then no use_count increase.
I mean boot_on = 1 in regulator_init_data.
I just checked the regulator core, and you are right that
no use_count increase if boot_on = 1 in this case.
use_count will be increased if boot_on = 1 && using regulator_get_exclusive.
Regards,
Axel
--
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