1. 14 6月, 2012 1 次提交
  2. 13 6月, 2012 1 次提交
  3. 03 6月, 2012 1 次提交
  4. 12 5月, 2012 1 次提交
  5. 09 4月, 2012 1 次提交
    • M
      regulator: core: Use a struct to pass in regulator runtime configuration · c172708d
      Mark Brown 提交于
      Rather than adding new arguments to regulator_register() every time we
      want to add a new bit of dynamic information at runtime change the function
      to take these via a struct. By doing this we avoid needing to do further
      changes like the recent addition of device tree support which required each
      regulator driver to be updated to take an additional parameter.
      
      The regulator_desc which should (mostly) be static data is still passed
      separately as most drivers are able to configure this statically at build
      time.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      c172708d
  6. 12 3月, 2012 1 次提交
  7. 24 11月, 2011 1 次提交
  8. 01 11月, 2011 1 次提交
  9. 27 5月, 2011 1 次提交
  10. 12 1月, 2011 1 次提交
  11. 03 3月, 2010 1 次提交
    • D
      Regulators: wm8400 - cleanup platform driver data handling · 1ad02bbc
      Dmitry Torokhov 提交于
      On Wed, Feb 24, 2010 at 08:40:56PM +0000, Mark Brown wrote:
      > On Wed, Feb 24, 2010 at 11:21:26AM -0800, Dmitry Torokhov wrote:
      > > On Wed, Feb 24, 2010 at 07:14:03PM +0000, Mark Brown wrote:
      >
      > > > This doesn't help unless you also provide a way for users to obtain a
      > > > struct wm8400.
      >
      > > Why would they need it? Only code that creates instances of wm8400 needs
      > > to know the definition of the sturcture, the rest can simply pass the
      > > pointer around.
      >
      > > I guess there is disconnect between us and I do not see any users of
      > > wm8400_register_regulator() in linux-next... Is there another tree I
      > > could peek at?
      >
      > There are no users in mainline.  This would be called by board specific
      > code from the init callback of the wm8400 - you'd need to pass that
      > callback the struct wm8400.
      >
      > In any case, this is clearly an unrelated change to whatever else you
      > were doing to the driver so should be split off into a separate patch,
      > but if this is being changed at all then it'd be much more sensible to
      > change it to use a more modern pattern which completely removes the
      > wm8400_register_regulator() function and just uses platform data.
      
      Fair enough, I removed the offending part, updated patch below.
      
      --
      Dmitry
      
      regulator: wm8400 - cleanup platform driver data handling
      
      Driver data set by platform_set_drvdata() is for private use of
      the driver currently bound to teh device and not for use by parent,
      subsystem and anyone else.
      Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
      Acked-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      Signed-off-by: NLiam Girdwood <lrg@slimlogic.co.uk>
      1ad02bbc
  12. 15 6月, 2009 2 次提交
  13. 31 3月, 2009 2 次提交
  14. 17 1月, 2009 1 次提交
  15. 14 10月, 2008 1 次提交