1. 14 3月, 2010 1 次提交
  2. 26 11月, 2009 1 次提交
  3. 19 9月, 2009 1 次提交
    • J
      i2c/tsl2550: Use combined SMBus transactions · ac780941
      Jean Delvare 提交于
      Make the I/O faster, mainly by using combined SMBus transactions when
      possible. While the TSL2550 datasheet doesn't say the device supports
      them, they seem to work just fine in practice, and a combined
      transaction is faster than two simple transactions in many cases and
      always more reliable.
      
      A side effect is to suppress the delays between SMBus writes and
      reads. The datasheet doesn't say they are needed and things work just
      fine for me without them.
      
      I also couldn't see any reason for the delay between reading the two
      channels. Nor for the loop to get a reading in the first place. The
      400 ms delay between samples only matters at chip power-up, after that
      the chip always hold the previously sampled value so we never get to
      wait.
      
      All these changes make reading the lux value much faster and cheaper.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Tested-by: NMichele De Candia <michele.decandia@valueteam.com>
      Cc: Rodolfo Giometti <giometti@linux.it>
      ac780941
  4. 28 7月, 2009 1 次提交
  5. 30 4月, 2008 2 次提交
    • J
      i2c: Convert most new-style drivers to use module aliasing · 3760f736
      Jean Delvare 提交于
      Based on earlier work by Jon Smirl and Jochen Friedrich.
      
      Update most new-style i2c drivers to use standard module aliasing
      instead of the old driver_name/type driver matching scheme. I've
      left the video drivers apart (except for SoC camera drivers) as
      they're a bit more diffcult to deal with, they'll have their own
      patch later.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Jon Smirl <jonsmirl@gmail.com>
      Cc: Jochen Friedrich <jochen@scram.de>
      3760f736
    • J
      i2c: Add support for device alias names · d2653e92
      Jean Delvare 提交于
      Based on earlier work by Jon Smirl and Jochen Friedrich.
      
      This patch allows new-style i2c chip drivers to have alias names using
      the official kernel aliasing system and MODULE_DEVICE_TABLE(). At this
      point, the old i2c driver binding scheme (driver_name/type) is still
      supported.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Jochen Friedrich <jochen@scram.de>
      Cc: Jon Smirl <jonsmirl@gmail.com>
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      d2653e92
  6. 28 1月, 2008 1 次提交
  7. 12 7月, 2007 2 次提交