1. 17 5月, 2013 4 次提交
    • A
      mfd: ab8500: Debugfs code depends on gpadc · 3993eff9
      Arnd Bergmann 提交于
      The AB8500_DEBUG code specifically requires access to the gpadc code,
      not just the common ab8500 driver.
      
      drivers/built-in.o: In function `ab8500_gpadc_bat_ctrl_print':
       mfd/ab8500-debugfs.c:1733: undefined reference to `ab8500_gpadc_get'
       mfd/ab8500-debugfs.c:1734: undefined reference to `ab8500_gpadc_read_raw'
       mfd/ab8500-debugfs.c:1736: undefined reference to `ab8500_gpadc_ad_to_voltage'
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      3993eff9
    • G
      mfd: si476x: Use get_unaligned_be16() for unaligned be16 loads · 151978bf
      Geert Uytterhoeven 提交于
      Loading be16 values from byte buffers may cause unaligned accesses, so use
      get_unaligned_be16() to avoid problems on architectures that do not support
      these.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      151978bf
    • G
      mfd: cros_ec_spi: Use %z to format pointer differences · c34924b9
      Geert Uytterhoeven 提交于
      Before commit 5c29e47e ("mfd: cros_ec_spi:
      Warnings fix"), 64-bit compiles gave the following warnings:
      
      drivers/mfd/cros_ec_spi.c: In function 'cros_ec_spi_receive_response':
      drivers/mfd/cros_ec_spi.c:123:5: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]
      drivers/mfd/cros_ec_spi.c:157:3: warning: format '%d' expects argument of type 'int', but argument 6 has type 'long int' [-Wformat]
      drivers/mfd/cros_ec_spi.c:181:2: warning: format '%d' expects argument of type 'int', but argument 4 has type 'long int' [-Wformat]
      
      After that commit, 32-bit compiles give:
      
      drivers/mfd/cros_ec_spi.c: In function ‘cros_ec_spi_receive_response’:
      drivers/mfd/cros_ec_spi.c:123: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
      drivers/mfd/cros_ec_spi.c:157: warning: format ‘%ld’ expects type ‘long int’, but argument 6 has type ‘int’
      drivers/mfd/cros_ec_spi.c:181: warning: format ‘%ld’ expects type ‘long int’, but argument 4 has type ‘int’
      
      Use %z to format pointer differences to kill the warnings on both 32-bit
      and 64-bit.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      c34924b9
    • G
      mfd: si476x: Do not use binary constants · b0222afa
      Geert Uytterhoeven 提交于
      Gcc < 4.3 doesn't understand binary constanrs (0b*):
      
      drivers/mfd/si476x-cmd.c:153:22: error: invalid suffix "b11111" on integer constant
      drivers/mfd/si476x-cmd.c:775:20: error: invalid suffix "b00001000" on integer constant
      drivers/mfd/si476x-cmd.c:776:20: error: invalid suffix "b00000100" on integer constant
      drivers/mfd/si476x-cmd.c:777:21: error: invalid suffix "b00000010" on integer constant
      drivers/mfd/si476x-cmd.c:778:21: error: invalid suffix "b00000001" on integer constant
      drivers/mfd/si476x-cmd.c:780:17: error: invalid suffix "b10000000" on integer constant
      drivers/mfd/si476x-cmd.c:781:22: error: invalid suffix "b00100000" on integer constant
      ...
      
      Hence use hexadecimal constants (0x*) instead.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NAndrey Smirnov <andrew.smirnov@gmail.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      b0222afa
  2. 16 5月, 2013 1 次提交
    • D
      mfd: tps65912: Select MFD_CORE · c972c128
      David Rientjes 提交于
      CONFIG_MFD_CORE must be selected for TPS65912 to properly buid.
      Otherwise it results in a link error:
      
      	drivers/built-in.o: In function `tps65912_device_init':
      	(.text+0x587e4): undefined reference to `mfd_add_devices'
      	drivers/built-in.o: In function `tps65912_device_init':
      	(.text+0x5884c): undefined reference to `mfd_remove_devices'
      	drivers/built-in.o: In function `tps65912_device_exit':
      	(.text+0x58878): undefined reference to `mfd_remove_devices'
      Signed-off-by: NDavid Rientjes <rientjes@google.com>
      Signed-off-by: NSamuel Ortiz <sameo@linux.intel.com>
      c972c128
  3. 10 5月, 2013 35 次提交