1. 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
  2. 08 3月, 2010 1 次提交
    • A
      sysdev: Pass attribute in sysdev_class attributes show/store · c9be0a36
      Andi Kleen 提交于
      Passing the attribute to the low level IO functions allows all kinds
      of cleanups, by sharing low level IO code without requiring
      an own function for every piece of data.
      
      Also drivers can extend the attributes with own data fields
      and use that in the low level function.
      
      Similar to sysdev_attributes and normal attributes.
      
      This is a tree-wide sweep, converting everything in one go.
      
      No functional changes in this patch other than passing the new
      argument everywhere.
      
      Tested on x86, the non x86 parts are uncompiled.
      Signed-off-by: NAndi Kleen <ak@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
      c9be0a36
  3. 27 2月, 2010 1 次提交
  4. 13 1月, 2010 1 次提交
  5. 17 12月, 2009 1 次提交
  6. 04 12月, 2009 1 次提交
  7. 14 11月, 2009 1 次提交
  8. 02 11月, 2009 2 次提交
  9. 18 9月, 2009 2 次提交
  10. 04 8月, 2009 2 次提交
  11. 17 6月, 2009 4 次提交
  12. 14 5月, 2009 2 次提交
  13. 30 3月, 2009 1 次提交
  14. 21 3月, 2009 2 次提交
  15. 31 1月, 2009 1 次提交
  16. 30 10月, 2008 2 次提交
  17. 28 10月, 2008 4 次提交
  18. 24 10月, 2008 1 次提交
  19. 11 10月, 2008 10 次提交