1. 04 7月, 2012 2 次提交
    • M
      regulator: core: Check that the selector from map_voltage() is valid · e113d792
      Mark Brown 提交于
      Lots of regulator drivers have checks in their map_voltage() functions
      to verify that the result of the mapping is in the range originally
      specified. Factor these out in the core and provide a bit of extra
      defensiveness for other drivers by doing the check in the core.
      
      Since we're now doing a list_voltage() earlier move the current mapping
      back to a voltage out into the set_voltage() call to save redoing it.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      e113d792
    • M
      regulator: core: Support fixed voltages in regulator_is_supported_voltage() · c5f3939b
      Mark Brown 提交于
      Currently regulator_is_supported_voltage() works by enumerating the set
      of voltages which can be set by the regulator but the checks we're doing
      to impose constraints mean that if we can't vary the voltage we'll not
      report any voltages as supported even though the regulator is actually
      set at that voltage.
      
      We could fix the voltage listing but this would mean that list_voltage()
      could end up going to the hardware to get the current voltage which isn't
      expected (it's supposed to be very cheap) so instead special case things
      when we can't change the voltage and compare the requested range against
      the current voltage.
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      c5f3939b
  2. 27 6月, 2012 1 次提交
  3. 26 6月, 2012 2 次提交
  4. 18 6月, 2012 4 次提交
  5. 04 6月, 2012 1 次提交
  6. 03 6月, 2012 12 次提交
  7. 02 6月, 2012 16 次提交
  8. 01 6月, 2012 2 次提交