1. 15 7月, 2008 6 次提交
  2. 03 7月, 2008 1 次提交
  3. 19 5月, 2008 1 次提交
    • J
      i2c/max6875: Really prevent 24RF08 corruption · 70455e79
      Jean Delvare 提交于
      i2c-core takes care of the possible corruption of 24RF08 chips for
      quite some times, so device devices no longer need to do it. And they
      really should not, as applying the prevention twice voids it.
      
      I thought that I had fixed all drivers long ago but apparently I had
      missed that one.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Ben Gardner <bgardner@wabtec.com>
      70455e79
  4. 30 4月, 2008 3 次提交
    • 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
    • J
      i2c/tps65010: Add missing intialization of client data · 6d072d78
      Jean Delvare 提交于
      tps65010_remove() calls i2c_get_clientdata(client) but the client data
      is never set during initialization, so it gets a NULL pointer at best.
      
      I guess it was never spotted because the tps65010 driver is typically
      not built modular so this function is discarded.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      6d072d78
  5. 23 4月, 2008 1 次提交
  6. 15 4月, 2008 1 次提交
  7. 12 3月, 2008 1 次提交
  8. 08 2月, 2008 1 次提交
  9. 06 2月, 2008 1 次提交
  10. 28 1月, 2008 5 次提交
  11. 25 1月, 2008 1 次提交
  12. 12 12月, 2007 1 次提交
  13. 16 11月, 2007 2 次提交
  14. 19 10月, 2007 1 次提交
    • J
      Add missing newlines to some uses of dev_<level> messages · 898eb71c
      Joe Perches 提交于
      Found these while looking at printk uses.
      
      Add missing newlines to dev_<level> uses
      Add missing KERN_<level> prefixes to multiline dev_<level>s
      Fixed a wierd->weird spelling typo
      Added a newline to a printk
      Signed-off-by: NJoe Perches <joe@perches.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Tilman Schmidt <tilman@imap.cc>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: James Smart <James.Smart@Emulex.Com>
      Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      898eb71c
  15. 17 10月, 2007 1 次提交
  16. 14 10月, 2007 3 次提交
  17. 15 8月, 2007 2 次提交
  18. 30 7月, 2007 1 次提交
  19. 27 7月, 2007 1 次提交
  20. 18 7月, 2007 1 次提交
  21. 16 7月, 2007 1 次提交
  22. 12 7月, 2007 4 次提交
    • J
      i2c/tsl2550: Speed up initialization · e296fb7f
      Jean Delvare 提交于
      There's some redundancy in the tsl2550 initialization sequence. It is
      powering up the device twice, and setting the operating mode twice
      too. Setting things just once saves SMBus transactions, which aren't
      always cheap, speeding up the device initialization.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: Rodolfo Giometti <giometti@linux.it>
      e296fb7f
    • R
      i2c: Add support for the TSL2550 · a92c344d
      Rodolfo Giometti 提交于
      Add support for Taos TSL2550 ambient light sensors.
      (http://www.taosinc.com/product_detail.asp?cateid=4&proid=18).
      Signed-off-by: NRodolfo Giometti <giometti@linux.it>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      a92c344d
    • G
      i2c: New DS1682 chip driver · 5162b75b
      Grant Likely 提交于
      A driver for the Dallas DS1682 elapsed time recorder chip.
      
      Tested on a MPC5200 based board using the integrated i2c adapter.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      5162b75b
    • J
      i2c: Fix the i2c_smbus_read_i2c_block_data() prototype · 4b2643d7
      Jean Delvare 提交于
      Let the drivers specify how many bytes they want to read with
      i2c_smbus_read_i2c_block_data(). So far, the block count was
      hard-coded to I2C_SMBUS_BLOCK_MAX (32), which did not make much sense.
      Many driver authors complained about this before, and I believe it's
      about time to fix it. Right now, authors have to do technically stupid
      things, such as individual byte reads or full-fledged I2C messaging,
      to work around the problem. We do not want to encourage that.
      
      I even found that some bus drivers (e.g. i2c-amd8111) already
      implemented I2C block read the "right" way, that is, they didn't
      follow the old, broken standard. The fact that it was never noticed
      before just shows how little i2c_smbus_read_i2c_block_data() was used,
      which isn't that surprising given how broken its prototype was so far.
      
      There are some obvious compatiblity considerations:
      * This changes the i2c_smbus_read_i2c_block_data() prototype. Users
        outside the kernel tree will notice at compilation time, and will
        have to update their code.
      * User-space has access to i2c_smbus_xfer() directly using i2c-dev, so
        the changed expectations would affect tools such as i2cdump. In order
        to preserve binary compatibility, we give I2C_SMBUS_I2C_BLOCK_DATA
        a new numeric value, and define I2C_SMBUS_I2C_BLOCK_BROKEN with the
        old numeric value. When i2c-dev receives a transaction with the
        old value, it can convert it to the new format on the fly.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      4b2643d7