1. 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
  2. 19 6月, 2015 1 次提交
  3. 17 6月, 2015 2 次提交
  4. 16 6月, 2015 2 次提交
  5. 12 6月, 2015 4 次提交
  6. 11 6月, 2015 1 次提交
  7. 10 6月, 2015 5 次提交
  8. 09 6月, 2015 3 次提交
  9. 03 6月, 2015 2 次提交
  10. 02 6月, 2015 4 次提交
  11. 27 5月, 2015 2 次提交
  12. 25 5月, 2015 1 次提交
  13. 22 5月, 2015 4 次提交
  14. 21 5月, 2015 2 次提交
  15. 13 5月, 2015 3 次提交
  16. 11 5月, 2015 1 次提交
  17. 06 5月, 2015 1 次提交
  18. 04 5月, 2015 1 次提交