1. 23 5月, 2014 1 次提交
  2. 21 5月, 2014 9 次提交
  3. 09 5月, 2014 1 次提交
  4. 07 5月, 2014 2 次提交
    • T
      pwm: lpss: Fix const qualifier and sparse warnings · 89c0339e
      Thierry Reding 提交于
      Fixes the following warnings reported by the 0-DAY kernel build testing
      backend:
      
         drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_probe_pci':
      >> drivers/pwm/pwm-lpss.c:192:2: warning: passing argument 3 of 'pwm_lpss_probe' discards 'const' qualifier from pointer target type [enabled by default]
           lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info);
           ^
         drivers/pwm/pwm-lpss.c:130:30: note: expected 'struct pwm_lpss_boardinfo *' but argument is of type 'const struct pwm_lpss_boardinfo *'
          static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev,
                                       ^
      >> drivers/pwm/pwm-lpss.c:143:28: sparse: incorrect type in return expression (different address spaces)
         drivers/pwm/pwm-lpss.c:143:28:    expected struct pwm_lpss_chip *
         drivers/pwm/pwm-lpss.c:143:28:    got void [noderef] <asn:2>*regs
      >> drivers/pwm/pwm-lpss.c:192:63: sparse: incorrect type in argument 3 (different modifiers)
         drivers/pwm/pwm-lpss.c:192:63:    expected struct pwm_lpss_boardinfo *info
         drivers/pwm/pwm-lpss.c:192:63:    got struct pwm_lpss_boardinfo const *[assigned] info
         drivers/pwm/pwm-lpss.c: In function 'pwm_lpss_probe_pci':
         drivers/pwm/pwm-lpss.c:192:2: warning: passing argument 3 of 'pwm_lpss_probe' discards 'const' qualifier from pointer target type [enabled by default]
           lpwm = pwm_lpss_probe(&pdev->dev, &pdev->resource[0], info);
           ^
         drivers/pwm/pwm-lpss.c:130:30: note: expected 'struct pwm_lpss_boardinfo *' but argument is of type 'const struct pwm_lpss_boardinfo *'
          static struct pwm_lpss_chip *pwm_lpss_probe(struct device *dev,
                                       ^
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      89c0339e
    • B
      pwm: spear: fix check on pwmchip_add() return value · 5b1e8e06
      Beniamino Galvani 提交于
      pwmchip_add() returns zero on success and a negative value on error,
      so the condition of the check must be inverted.
      Signed-off-by: NBeniamino Galvani <b.galvani@gmail.com>
      Acked-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NThierry Reding <thierry.reding@gmail.com>
      5b1e8e06
  5. 28 4月, 2014 11 次提交
  6. 19 4月, 2014 1 次提交
  7. 01 4月, 2014 4 次提交
  8. 19 3月, 2014 4 次提交
  9. 26 2月, 2014 4 次提交
  10. 23 1月, 2014 1 次提交
  11. 21 1月, 2014 1 次提交
    • M
      pwm: Add LP3943 PWM driver · af66b3c0
      Milo Kim 提交于
      This is the other of the LP3943 MFD driver.
      LP3943 can be used as a PWM generator, up to 2 channels.
      
      * Two PWM generators supported
      
      * Supported PWM operations
        request, free, config, enable and disable
      
      * Pin assignment
        A driver data, 'pin_used' is checked when a PWM is requested.
        If the output pin is already assigned, then returns as failure.
        If the pin is available, 'pin_used' is set.
        When the PWM is not used anymore, then it is cleared.
        It is defined as unsigned long type for atomic bit operation APIs,
        but only LSB 16bits are used because LP3943 has 16 outputs.
      Signed-off-by: NMilo Kim <milo.kim@ti.com>
      Acked-by: NThierry Reding <thierry.reding@gmail.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      af66b3c0
  12. 20 12月, 2013 1 次提交