1. 11 7月, 2015 3 次提交
  2. 10 7月, 2015 2 次提交
  3. 08 7月, 2015 3 次提交
    • L
      regulator: pwm-regulator: Don't assign structure attributes right away · 5ad2cb14
      Lee Jones 提交于
      Perhaps this is just personal preference, but ...
      
      This patch introduces a new local variable to receive and test regulator
      initialisation data.  It simplifies and cleans up the code making it
      that little bit easier to read and maintain.  The local value is assigned
      to the structure attribute when all the others are.  This is the way we
      usually do things.
      
      Prevents this kind of nonsense:
      
      	this->is->just.silly = fetch_silly_value(&pointer);
      	if (!this->is->just.silly) {
      		printk("Silly value failed: %d\n", this->is->just.silly);
      		return this->is->just.silly;
      	}
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      5ad2cb14
    • L
      regulator: pwm-regulator: Simplify voltage to duty-cycle call · cae897de
      Lee Jones 提交于
      If we reverse some of the logic and change the formula used,
      we can simplify the function greatly.
      
      It is intentional that this function is supplied and then re-worked
      within the same patch-set.  The submission in the previous patch is
      the tried and tested (i.e. in real releases) method written by ST.
      This patch contains a simplification provided later.  It looks and
      performs better, but doesn't have the same time-under-test that the
      original method does.  The idea is that we keep some history in
      order to provide an easy way back i.e. revert.
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      cae897de
    • L
      regulator: pwm-regulator: Add support for continuous-voltage · 4773be18
      Lee Jones 提交于
      The current version of PWM regulator only supports a static table
      approach, where pre-calculated values are supplied by the vendor and
      obtained via DT.  The continuous-voltage method takes min_uV and
      max_uV, and divides the difference between them up into a number of
      slices.  The number of slices depend on how large the duty cycle
      register is.  This information is provided by a DT property.
      
      As the name alludes, this provides values for a continuous voltage
      range between min_uV and max_uV, which has obvious benefits over
      either limited voltage possibilities, or the requirement to provide
      a large voltage-table.
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      4773be18
  4. 07 7月, 2015 1 次提交
  5. 09 6月, 2015 3 次提交
  6. 27 11月, 2014 1 次提交
  7. 20 10月, 2014 1 次提交
  8. 28 9月, 2014 1 次提交