Tag: f937331b3f92cb2f67bc81baa1b8cc5198c439e5

init dynamic bin_attribute structures

Author: Wolfram Sang <w.sang@pengutronix.de> Commit 6992f5334995af474c2b58d010d08bc597f0f2fe (“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; … …

Continue reading