1. 22 11月, 2012 1 次提交
  2. 25 1月, 2012 1 次提交
    • A
      MISC: convert drivers/misc/* to use module_i2c_driver() · a64fe2ed
      Axel Lin 提交于
      This patch converts the drivers in drivers/misc/* to use the
      module_i2c_driver() macro which makes the code smaller and a bit
      simpler.
      Signed-off-by: NAxel Lin <axel.lin@gmail.com>
      Cc: Michael Hennerich <hennerich@blackfin.uclinux.org>
      Cc: Anantha Narayanan <Anantha.Narayanan@intel.com>
      Cc: Hemanth V <hemanthv@ti.com>
      Cc: Christoph Mair <christoph.mair@gmail.com>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Ben Gardner <bgardner@wabtec.com>
      Cc: Minkyu Kang <mk7.kang@samsung.com>
      Cc: Kalhan Trisal <kalhan.trisal@intel.com>
      Cc: Darrick J. Wong <djwong@us.ibm.com>
      Cc: Daniel Mack <zonque@gmail.com>
      Cc: Rodolfo Giometti <giometti@linux.it>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a64fe2ed
  3. 14 3月, 2010 1 次提交
  4. 26 11月, 2009 1 次提交
  5. 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
  6. 28 7月, 2009 1 次提交
  7. 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
  8. 28 1月, 2008 1 次提交
  9. 12 7月, 2007 2 次提交