1. 05 2月, 2013 1 次提交
  2. 04 2月, 2013 2 次提交
    • A
      regmap: Export regmap_async_complete_cb · f804fb56
      Axel Lin 提交于
      This fixes below build error when CONFIG_REGMAP=y && CONFIG_REGMAP_SPI=m
      
      ERROR: "regmap_async_complete_cb" [drivers/base/regmap/regmap-spi.ko] undefined!
      make[1]: *** [__modpost] Error 1
      make: *** [modules] Error 2
      Signed-off-by: NAxel Lin <axel.lin@ingics.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      f804fb56
    • S
      regmap: include linux/sched.h to fix build · 30b2a553
      Stephen Warren 提交于
      This fixes:
      
      drivers/base/regmap/regmap.c: In function 'regmap_async_complete_cb':
      drivers/base/regmap/regmap.c:1656:3: error: 'TASK_NORMAL' undeclared (first use in this function)
      drivers/base/regmap/regmap.c:1656:3: note: each undeclared identifier is reported only once for each function it appears in
      drivers/base/regmap/regmap.c: In function 'regmap_async_complete':
      drivers/base/regmap/regmap.c:1688:2: error: 'TASK_UNINTERRUPTIBLE' undeclared (first use in this function)
      drivers/base/regmap/regmap.c:1688:2: error: implicit declaration of function 'schedule'
      
      An alternative might be to adjust linux/wait.h to include linux/sched.h,
      but since that hasn't been done before, I assume we're consciously
      avoiding doing that.
      Signed-off-by: NStephen Warren <swarren@nvidia.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      30b2a553
  3. 29 1月, 2013 2 次提交
  4. 14 1月, 2013 2 次提交
  5. 06 1月, 2013 2 次提交
  6. 21 12月, 2012 1 次提交
  7. 20 12月, 2012 1 次提交
  8. 13 12月, 2012 2 次提交
  9. 12 12月, 2012 6 次提交
  10. 11 12月, 2012 4 次提交
  11. 06 12月, 2012 1 次提交
  12. 29 11月, 2012 1 次提交
  13. 27 11月, 2012 4 次提交
  14. 24 11月, 2012 2 次提交
  15. 21 11月, 2012 2 次提交
    • D
      regmap: introduce tables for readable/writeable/volatile/precious checks · 76aad392
      Davide Ciminaghi 提交于
      Many of the regmap enabled drivers implementing one or more of the
      readable, writeable, volatile and precious methods use the same code
      pattern:
      
      	return ((reg >= X && reg <= Y) || (reg >= W && reg <= Z) || ...)
      
      Switch to a data driven approach, using tables to describe
      readable/writeable/volatile and precious registers ranges instead.
      The table based check can still be overridden by passing the usual function
      pointers via struct regmap_config.
      Signed-off-by: NDavide Ciminaghi <ciminaghi@gnudd.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      76aad392
    • R
      ACPI / platform: Initialize ACPI handles of platform devices in advance · 863f9f30
      Rafael J. Wysocki 提交于
      The current platform device creation and registration code in
      acpi_create_platform_device() is quite convoluted.  This function
      takes an ACPI device node as an argument and eventually calls
      platform_device_register_resndata() to create and register a
      platform device object on the basis of the information contained
      in that code.  However, it doesn't associate the new platform
      device with the ACPI node directly, but instead it relies on
      acpi_platform_notify(), called from within device_add(), to find
      that ACPI node again with the help of acpi_platform_find_device()
      and acpi_platform_match() and then attach the new platform device
      to it.  This causes an additional ACPI namespace walk to happen and
      is clearly suboptimal.
      
      Use the observation that it is now possible to initialize the ACPI
      handle of a device before calling device_add() for it to make this
      code more straightforward.  Namely, add a new field to struct
      platform_device_info allowing us to pass the ACPI handle of interest
      to platform_device_register_full(), which will then use it to
      initialize the new device's ACPI handle before registering it.
      This will cause acpi_platform_notify() to use the ACPI handle from
      the device structure directly instead of using the .find_device()
      routine provided by the device's bus type.  In consequence,
      acpi_platform_bus, acpi_platform_find_device(), and
      acpi_platform_match() are not necessary any more, so remove them.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      863f9f30
  16. 16 11月, 2012 1 次提交
  17. 15 11月, 2012 6 次提交