Commit ae587a5
sysfs: implement all BIN_ATTR_* macros in terms of __BIN_ATTR()
The preparations for the upcoming constification of struct bin_attribute
requires some logic in the structure definition macros.
To avoid duplication of that logic in multiple macros, reimplement all
other macros in terms of __BIN_ATTR().
Signed-off-by: Thomas Weißschuh <[email protected]>
Acked-by: Krzysztof Wilczyński <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 699e7b8 commit ae587a5
1 file changed
+8
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
| 336 | + | |
| 337 | + | |
341 | 338 | | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
| 339 | + | |
| 340 | + | |
347 | 341 | | |
348 | 342 | | |
349 | 343 | | |
| |||
364 | 358 | | |
365 | 359 | | |
366 | 360 | | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
| 361 | + | |
| 362 | + | |
372 | 363 | | |
373 | 364 | | |
374 | 365 | | |
| |||
379 | 370 | | |
380 | 371 | | |
381 | 372 | | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
| 373 | + | |
| 374 | + | |
386 | 375 | | |
387 | 376 | | |
388 | 377 | | |
| |||
0 commit comments