public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* The use_count problem of regulator
@ 2010-01-20  6:30 Joonyoung Shim
  2010-01-20 10:35 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Joonyoung Shim @ 2010-01-20  6:30 UTC (permalink / raw)
  To: lrg, broonie; +Cc: kyungmin.park, mk7.kang, linux-kernel

Hi, all.

I have one simple question.

In the regulator framework, if the regulator is enabled for example by 
boot_on constraint, when regulator_get is called at the driver probe 
function, the use_count of struct regulator_dev is zero. But if 
regulator_has_full_constraints() is used, even though above the 
regulator is using, it is disabled by regulator_init_complete() because
the use_count is zero.

Of course, we can use regulator_get_exclusive instead of regulator_get,
but if the regulator can be shared, i think this will be a problem.

Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-01-20 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-20  6:30 The use_count problem of regulator Joonyoung Shim
2010-01-20 10:35 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox