1. 22 5月, 2010 1 次提交
    • J
      at24: Fall back to byte or word reads if needed · 7aeb9664
      Jean Delvare 提交于
      Increase the portability of the at24 driver by letting it read from
      EEPROM chips connected to cheap SMBus controllers that support neither
      raw I2C messages nor even I2C block reads. All SMBus controllers
      should support either word reads or byte reads, so read support
      becomes universal, much like with the legacy "eeprom" driver.
      
      Obviously, this only works with EEPROM chips up to AT24C16, that use
      8-bit offset addressing. 16-bit offset addressing is almost impossible
      to support on SMBus controllers.
      
      I did not add universal support for writes, as I had no immediate need
      for this, but it could be added later if needed (with the same
      performance issue as byte and word reads have, of course.)
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Reviewed-by: NWolfram Sang <w.sang@pengutronix.de>
      Cc: Konstantin Lazarev <klazarev@sbcglobal.net>
      7aeb9664
  2. 14 5月, 2010 3 次提交
  3. 15 3月, 2010 1 次提交
    • W
      init dynamic bin_attribute structures · f937331b
      Wolfram Sang 提交于
      Commit 6992f533 ("sysfs: Use one lockdep
      class per sysfs attribute.") introduced this requirement.  First, at25
      was fixed manually.  Then, other occurences were found with coccinelle
      and the following semantic patch.  Results were reviewed and fixed up:
      
          @ init @
          identifier struct_name, bin;
          @@
      
          	struct struct_name {
          		...
          		struct bin_attribute bin;
          		...
          	};
      
          @ main extends init @
          expression E;
          statement S;
          identifier name, err;
          @@
      
          (
          	struct struct_name *name;
          |
          -	struct struct_name *name = NULL;
          +	struct struct_name *name;
          )
          	...
          (
          	sysfs_bin_attr_init(&name->bin);
          |
          +	sysfs_bin_attr_init(&name->bin);
          	if (sysfs_create_bin_file(E, &name->bin))
          		S
          |
          +	sysfs_bin_attr_init(&name->bin);
          	err = sysfs_create_bin_file(E, &name->bin);
          )
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      Cc: Eric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      f937331b
  4. 14 3月, 2010 1 次提交
  5. 15 12月, 2009 3 次提交
  6. 26 11月, 2009 1 次提交
  7. 05 10月, 2009 1 次提交
  8. 23 9月, 2009 1 次提交
  9. 30 7月, 2009 1 次提交
  10. 16 6月, 2009 1 次提交
  11. 14 4月, 2009 2 次提交
  12. 03 4月, 2009 2 次提交
  13. 29 3月, 2009 1 次提交
  14. 27 1月, 2009 5 次提交