1. 24 7月, 2012 1 次提交
  2. 30 5月, 2012 1 次提交
  3. 12 5月, 2012 1 次提交
  4. 27 3月, 2012 1 次提交
  5. 23 11月, 2011 1 次提交
  6. 18 11月, 2011 1 次提交
  7. 01 11月, 2011 2 次提交
    • P
      include: replace linux/module.h with "struct module" wherever possible · de477254
      Paul Gortmaker 提交于
      The <linux/module.h> pretty much brings in the kitchen sink along
      with it, so it should be avoided wherever reasonably possible in
      terms of being included from other commonly used <linux/something.h>
      files, as it results in a measureable increase on compile times.
      
      The worst culprit was probably device.h since it is used everywhere.
      This file also had an implicit dependency/usage of mutex.h which was
      masked by module.h, and is also fixed here at the same time.
      
      There are over a dozen other headers that simply declare the
      struct instead of pulling in the whole file, so follow their lead
      and simply make it a few more.
      
      Most of the implicit dependencies on module.h being present by
      these headers pulling it in have been now weeded out, so we can
      finally make this change with hopefully minimal breakage.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      de477254
    • P
      include: convert various register fcns to macros to avoid include chaining · eb5589a8
      Paul Gortmaker 提交于
      The original implementations reference THIS_MODULE in an inline.
      We could include <linux/export.h>, but it is better to avoid chaining.
      
      Fortunately someone else already thought of this, and made a similar
      inline into a #define in <linux/device.h> for device_schedule_callback(),
      [see commit 523ded71] so follow that precedent here.
      
      Also bubble up any __must_check that were used on the prev. wrapper inline
      functions up one to the real __register functions, to preserve any prev.
      sanity checks that were used in those instances.
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      eb5589a8
  8. 30 10月, 2011 1 次提交
  9. 26 5月, 2011 1 次提交
  10. 20 3月, 2011 5 次提交
  11. 22 1月, 2011 1 次提交
  12. 11 1月, 2011 1 次提交
  13. 16 11月, 2010 1 次提交
  14. 01 11月, 2010 1 次提交
  15. 25 10月, 2010 2 次提交
  16. 12 8月, 2010 5 次提交
  17. 11 8月, 2010 1 次提交
  18. 04 5月, 2010 1 次提交
  19. 29 4月, 2010 1 次提交
    • G
      i2c/of: Allow device node to be passed via i2c_board_info · d12d42f7
      Grant Likely 提交于
      The struct device_node *of_node pointer is moving out of dev->archdata
      and into the struct device proper.  of_i2c.c needs to set the of_node
      pointer before the device is registered.  Since the i2c subsystem
      doesn't allow 2 stage allocation and registration of i2c devices, the
      of_node pointer needs to be passed via the i2c_board_info structure
      so that it is set prior to registration.
      
      This patch adds of_node to struct i2c_board_info (conditional on
      CONFIG_OF), sets of_node in i2c_new_device(), and modifies of_i2c.c
      to use the new parameter.  The calling of dev_archdata_set_node()
      from of_i2c will be removed in a subsequent patch when of_node is
      removed from archdata and all users are converted over.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      d12d42f7
  20. 02 3月, 2010 2 次提交
    • Z
      i2c: Document the message size limit · 0c43ea54
      Zhangfei Gao 提交于
      i2c_master_send & i2c_master_recv do not support more than 64 kb
      transfer, since msg.len is u16.
      Signed-off-by: NZhangfei Gao <zgao6@marvell.com>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      0c43ea54
    • J
      i2c: Add SMBus alert support · b5527a77
      Jean Delvare 提交于
      SMBus alert support. The SMBus alert protocol allows several SMBus
      slave devices to share a single interrupt pin on the SMBus master,
      while still allowing the master to know which slave triggered the
      interrupt.
      
      This is based on preliminary work by David Brownell. The key
      difference between David's implementation and mine is that his was
      part of i2c-core, while mine is split into a separate, standalone
      module named i2c-smbus. The i2c-smbus module is meant to include
      support for all SMBus extensions to the I2C protocol in the future.
      
      The benefit of this approach is a zero cost for I2C bus segments which
      do not need SMBus alert support. Where David's implementation
      increased the size of struct i2c_adapter by 7% (40 bytes on i386),
      mine doesn't touch it. Where David's implementation added over 150
      lines of code to i2c-core (+10%), mine doesn't touch it. The only
      change that touches all the users of the i2c subsystem is a new
      callback in struct i2c_driver (common to both implementations.) I seem
      to remember Trent was worried about the footprint of David'd
      implementation, hopefully mine addresses the issue.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Acked-by: NJonathan Cameron <jic23@cam.ac.uk>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Trent Piepho <tpiepho@freescale.com>
      b5527a77
  21. 15 12月, 2009 5 次提交
  22. 07 12月, 2009 2 次提交
  23. 07 11月, 2009 1 次提交
  24. 19 9月, 2009 1 次提交