Commit db65a06
committed
ACPI: EC: 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 embedded controller (EC) driver
to a platform one.
After this conversion, acpi_bus_register_early_device() does not need
to attempt to bind an ACPI driver to the struct acpi_device created by
it, so update it accordingly.
While this is not expected to alter functionality, it changes sysfs
layout and so it will be visible to user space.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
[ rjw: Removed excess semicolon ]
Link: https://patch.msgid.link/1946304.tdWV9SEqCh@rafael.j.wysocki
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>1 parent fe9542b commit db65a06
2 files changed
Lines changed: 22 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
1674 | 1675 | | |
1675 | 1676 | | |
1676 | 1677 | | |
1677 | | - | |
| 1678 | + | |
1678 | 1679 | | |
| 1680 | + | |
1679 | 1681 | | |
1680 | 1682 | | |
1681 | 1683 | | |
| |||
1730 | 1732 | | |
1731 | 1733 | | |
1732 | 1734 | | |
| 1735 | + | |
| 1736 | + | |
1733 | 1737 | | |
1734 | 1738 | | |
1735 | 1739 | | |
| |||
1750 | 1754 | | |
1751 | 1755 | | |
1752 | 1756 | | |
1753 | | - | |
| 1757 | + | |
1754 | 1758 | | |
1755 | | - | |
| 1759 | + | |
| 1760 | + | |
1756 | 1761 | | |
1757 | | - | |
1758 | | - | |
1759 | | - | |
1760 | | - | |
1761 | 1762 | | |
1762 | 1763 | | |
1763 | 1764 | | |
| |||
2095 | 2096 | | |
2096 | 2097 | | |
2097 | 2098 | | |
2098 | | - | |
2099 | | - | |
| 2099 | + | |
2100 | 2100 | | |
2101 | 2101 | | |
2102 | 2102 | | |
| |||
2105 | 2105 | | |
2106 | 2106 | | |
2107 | 2107 | | |
2108 | | - | |
| 2108 | + | |
2109 | 2109 | | |
2110 | 2110 | | |
2111 | 2111 | | |
| |||
2122 | 2122 | | |
2123 | 2123 | | |
2124 | 2124 | | |
2125 | | - | |
| 2125 | + | |
2126 | 2126 | | |
2127 | 2127 | | |
2128 | 2128 | | |
| |||
2135 | 2135 | | |
2136 | 2136 | | |
2137 | 2137 | | |
2138 | | - | |
2139 | | - | |
| 2138 | + | |
2140 | 2139 | | |
2141 | 2140 | | |
2142 | 2141 | | |
| |||
2265 | 2264 | | |
2266 | 2265 | | |
2267 | 2266 | | |
2268 | | - | |
2269 | | - | |
2270 | | - | |
2271 | | - | |
2272 | | - | |
2273 | | - | |
2274 | | - | |
2275 | | - | |
2276 | | - | |
| 2267 | + | |
| 2268 | + | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
2277 | 2275 | | |
2278 | 2276 | | |
2279 | 2277 | | |
| |||
2378 | 2376 | | |
2379 | 2377 | | |
2380 | 2378 | | |
2381 | | - | |
| 2379 | + | |
2382 | 2380 | | |
2383 | 2381 | | |
2384 | 2382 | | |
2385 | | - | |
2386 | | - | |
2387 | | - | |
2388 | | - | |
2389 | | - | |
2390 | | - | |
2391 | | - | |
2392 | | - | |
2393 | | - | |
2394 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2755 | 2755 | | |
2756 | 2756 | | |
2757 | 2757 | | |
2758 | | - | |
2759 | | - | |
2760 | | - | |
| 2758 | + | |
2761 | 2759 | | |
2762 | 2760 | | |
2763 | 2761 | | |
| |||
0 commit comments