1. 28 1月, 2008 1 次提交
    • O
      i2c-pasemi: use i2c_add_numbered_adapter() · ccf60d85
      Olof Johansson 提交于
      Use numbered adapter registration to always have the same hardware bus
      show up at the same number.
      
      PWRficient 1682M has three buses, they are all on the same PCI device but
      different functions. So do the simple thing and register them based on
      function number. Future products, if having a different number of busses,
      are expected to have similar behaviour w.r.t. device/function layout.
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      ccf60d85
  2. 16 11月, 2007 2 次提交
  3. 02 5月, 2007 1 次提交
    • D
      i2c: Shrink struct i2c_client · 2096b956
      David Brownell 提交于
      This shrinks the size of "struct i2c_client" by 40 bytes:
      
       - Substantially shrinks the string used to identify the chip type
       - The "flags" don't need to be so big
       - Removes some internal padding
      
      It also adds kerneldoc for that struct, explaining how "name" is really a
      chip type identifier; it's otherwise potentially confusing.
      
      Because the I2C_NAME_SIZE symbol was abused for both i2c_client.name
      and for i2c_adapter.name, this needed to affect i2c_adapter too.  The
      adapters which used that symbol now use the more-obviously-correct
      idiom of taking the size of that field.
      
      JD: Shorten i2c_adapter.name from 50 to 48 bytes while we're here, to
      avoid wasting space in padding.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      2096b956
  4. 18 4月, 2007 1 次提交
  5. 14 2月, 2007 1 次提交