Commit 03667e1
committed
ACPI: NFIT: core: Convert the driver to a platform one
While binding drivers directly to struct acpi_device objects allows
basic functionality to be provided, at least in the majority of cases,
there are some problems with it, related to general consistency, sysfs
layout, power management operation ordering, and code cleanliness.
Overall, it is better to bind drivers to platform devices than to their
ACPI companions, so convert the ACPI NFIT core driver to a platform one.
While this is not expected to alter functionality, it changes sysfs
layout and so it will be visible to user space.
This change was mostly developed by Michal Wilczynski [1].
Linu: https://lore.kernel.org/linux-acpi/20231011083334.3987477-6-michal.wilczynski@intel.com/ [1]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/6221453.lOV4Wx5bFT@rafael.j.wysocki
Acked-by: Ira Weiny <ira.weiny@intel.com>
Tested-by: Ira Weiny <ira.weiny@intel.com>1 parent 3ad5df2 commit 03667e1
1 file changed
Lines changed: 28 additions & 19 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
92 | 94 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 95 | + | |
97 | 96 | | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
| |||
3283 | 3291 | | |
3284 | 3292 | | |
3285 | 3293 | | |
3286 | | - | |
| 3294 | + | |
3287 | 3295 | | |
3288 | | - | |
3289 | | - | |
3290 | | - | |
| 3296 | + | |
| 3297 | + | |
| 3298 | + | |
3291 | 3299 | | |
3292 | 3300 | | |
3293 | 3301 | | |
| |||
3328 | 3336 | | |
3329 | 3337 | | |
3330 | 3338 | | |
3331 | | - | |
| 3339 | + | |
3332 | 3340 | | |
3333 | 3341 | | |
3334 | 3342 | | |
3335 | | - | |
| 3343 | + | |
| 3344 | + | |
3336 | 3345 | | |
3337 | 3346 | | |
3338 | 3347 | | |
3339 | 3348 | | |
3340 | 3349 | | |
3341 | 3350 | | |
3342 | | - | |
| 3351 | + | |
3343 | 3352 | | |
3344 | 3353 | | |
3345 | 3354 | | |
| |||
3369 | 3378 | | |
3370 | 3379 | | |
3371 | 3380 | | |
3372 | | - | |
| 3381 | + | |
3373 | 3382 | | |
3374 | 3383 | | |
3375 | 3384 | | |
| |||
3474 | 3483 | | |
3475 | 3484 | | |
3476 | 3485 | | |
3477 | | - | |
3478 | | - | |
3479 | | - | |
3480 | | - | |
3481 | | - | |
| 3486 | + | |
| 3487 | + | |
| 3488 | + | |
| 3489 | + | |
| 3490 | + | |
3482 | 3491 | | |
3483 | 3492 | | |
3484 | 3493 | | |
| |||
3516 | 3525 | | |
3517 | 3526 | | |
3518 | 3527 | | |
3519 | | - | |
| 3528 | + | |
3520 | 3529 | | |
3521 | 3530 | | |
3522 | 3531 | | |
| |||
3529 | 3538 | | |
3530 | 3539 | | |
3531 | 3540 | | |
3532 | | - | |
| 3541 | + | |
3533 | 3542 | | |
3534 | 3543 | | |
3535 | 3544 | | |
| |||
0 commit comments