1. 30 8月, 2015 3 次提交
  2. 29 8月, 2015 2 次提交
  3. 26 8月, 2015 3 次提交
    • M
      regulator: lp872x: handle error case · 804486b1
      Milo Kim 提交于
      If memory allocation gets failed on parsing the DT, then it returns error
      '-ENOMEM' explicitly. Then, the driver exists from the _probe().
      Signed-off-by: NMilo Kim <milo.kim@ti.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      804486b1
    • M
      regulator: lp872x: use the private data instead of updating I2C device platform data · d9ffae15
      Milo Kim 提交于
      Currently, lp872x driver parses the DT and copies values into the
      'cl->dev.platform_data' if 'of_node' exists.
      This may have architectural issue. Platform data is configurable through
      the DT or I2C board info inside the platform area.
      However, lp872x driver changes this configuration when it is loaded.
      
      The lp872x driver should get data from the platform side and use the private
      data, 'lp872x->pdata' instead of changing the original platform data.
      Signed-off-by: NMilo Kim <milo.kim@ti.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      d9ffae15
    • J
      regulator: isl9305: Export OF module alias information · 5b87af4c
      Javier Martinez Canillas 提交于
      The I2C core always reports the MODALIAS uevent as "i2c:<modalias>"
      regardless of the mechanism that was used to register the device
      (i.e: OF or board code) and the table that is used later to match
      the driver with the device (i.e: I2C id table or OF match table).
      
      So drivers needs to export the I2C id table and this be built into
      the module or udev won't have the necessary information to autoload
      the needed driver module when the device is added.
      
      But this means that OF-only drivers needs to have both OF and I2C id
      tables that have to be kept in sync and also the dev node compatible
      manufacturer prefix is stripped when reporting the MODALIAS. Which can
      lead to issues if two vendors use the same I2C device name for example.
      
      To avoid the above, the I2C core behavior may be changed in the future
      to not require an SPI device table for OF-only drivers and report the
      OF module alias. So, it's better to also export the OF table even when
      is unused now to prevent breaking module loading when the core changes.
      Signed-off-by: NJavier Martinez Canillas <javier@osg.samsung.com>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      5b87af4c
  4. 22 8月, 2015 1 次提交
  5. 20 8月, 2015 1 次提交
  6. 18 8月, 2015 2 次提交
  7. 15 8月, 2015 1 次提交
  8. 13 8月, 2015 1 次提交
  9. 12 8月, 2015 3 次提交
  10. 07 8月, 2015 1 次提交
  11. 05 8月, 2015 1 次提交
  12. 04 8月, 2015 2 次提交
  13. 01 8月, 2015 1 次提交
  14. 29 7月, 2015 1 次提交
  15. 25 7月, 2015 2 次提交
  16. 24 7月, 2015 1 次提交
  17. 23 7月, 2015 1 次提交
    • D
      regulator: tps6586x: silence pointer-to-int-cast · a70f0d02
      Daniel Kurtz 提交于
      of_regulator_match.driver_data is (void *).  tps6586x uses it to store an
      anonymous enum value (those TPS6586X_ID_ values).
      
      Later, it tries to extract the ID by casting directly to an int, which is a
      no-no ([-Wpointer-to-int-cast]):
      
      drivers/regulator/tps6586x-regulator.c: In function 'tps6586x_parse_regulator_dt':
      drivers/regulator/tps6586x-regulator.c:430:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
         id = (int)tps6586x_matches[i].driver_data;
              ^
      
      Instead of casting to int, uintptr_t is better suited for receiving and
      comparing integers extracted from void *.  This is especially true on
      64-bit systems where sizeof(void *) != sizeof(int).
      Signed-off-by: NDaniel Kurtz <djkurtz@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      a70f0d02
  18. 22 7月, 2015 2 次提交
  19. 21 7月, 2015 1 次提交
    • C
      regulator: rk808: fixed the overshoot when adjust voltage · bad47ad2
      Chris Zhong 提交于
      There is a overshoot in DCDC1/DCDC2, we have 2 method to workaround:
      1st is use dvs pin to switch the voltage between value in BUCKn_ON_VSEL
      and BUCKn_DVS_VSEL. If DVS pin is inactive, the voltage of DCDC1/DCDC2
      are controlled by BUCKn_ON_VSEL, when we pull dvs1/dvs2 pin to active,
      they would be controlled by BUCKn_DVS_VSEL. In this case, the ramp rate
      is same as the value programmed in BUCKn_RATE, and the fastest rate is
      10mv/us.
      2nd method is gradual adjustment, adjust the voltage to a target value
      step by step via i2c, each step is set to 100 mA. If you write the
      voltage directly using an i2c write the rk808 will always ramp as fast
      as it possibly can, about 100mv/us.
      Signed-off-by: NChris Zhong <zyw@rock-chips.com>
      Reviewed-by: NDoug Anderson <dianders@chromium.org>
      Signed-off-by: NMark Brown <broonie@kernel.org>
      bad47ad2
  20. 17 7月, 2015 10 次提交