1. 18 2月, 2015 1 次提交
  2. 03 2月, 2015 1 次提交
  3. 30 1月, 2015 5 次提交
  4. 04 12月, 2014 1 次提交
  5. 01 12月, 2014 3 次提交
  6. 17 11月, 2014 3 次提交
  7. 20 10月, 2014 2 次提交
  8. 25 9月, 2014 1 次提交
  9. 08 9月, 2014 1 次提交
  10. 29 8月, 2014 1 次提交
    • G
      pwm: Fix uninitialized warnings in pwm_get() · 70145f87
      Geert Uytterhoeven 提交于
      With some versions of gcc (e.g. 4.1.2):
      
      drivers/pwm/core.c: In function ‘pwm_get’:
      drivers/pwm/core.c:610: warning: ‘polarity’ may be used uninitialized in this function
      drivers/pwm/core.c:609: warning: ‘period’ may be used uninitialized in this function
      
      While these are false positives, we can get rid of them by refactoring
      the code to store a pointer to the best match, as suggested before by
      Thierry Reding. This does require moving the mutex_unlock() down.
      
      Fixes: d717ea73 ("pwm: Fix period and polarity in pwm_get() for non-perfect matches")
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      70145f87
  11. 26 8月, 2014 1 次提交
  12. 25 8月, 2014 6 次提交
  13. 23 8月, 2014 3 次提交
  14. 22 8月, 2014 2 次提交
  15. 20 8月, 2014 2 次提交
  16. 18 8月, 2014 1 次提交
    • G
      pwm: Fix period and polarity in pwm_get() for non-perfect matches · d717ea73
      Geert Uytterhoeven 提交于
      If pwm_get() finds a look-up entry with a perfect match (both dev_id and
      con_id match), the loop is aborted, and "p" still points to the correct
      struct pwm_lookup.
      
      If only an entry with a matching dev_id or con_id is found, the loop
      terminates after traversing the whole list, and "p" now points to
      arbitrary memory, not part of the pwm_lookup list.
      Then pwm_set_period() and pwm_set_polarity() will set random values for
      period resp. polarity.
      
      To fix this, save period and polarity when finding a new best match,
      just like is done for chip (for the provider) and index.
      
      This fixes the LCD backlight on r8a7740/armadillo-legacy, which was fed
      period 0 and polarity -1068821144 instead of 33333 resp. 1.
      
      Fixes: 3796ce1d ("pwm: add period and polarity to struct pwm_lookup")
      Signed-off-by: NGeert Uytterhoeven <geert+renesas@glider.be>
      Cc: stable@vger.kernel.org
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      d717ea73
  17. 08 8月, 2014 5 次提交
  18. 07 8月, 2014 1 次提交