Commit a56fdd8
ACPI: battery: use DEFINE_SIMPLE_DEV_PM_OPS
Use the recommended macro to define the PM ops.
Also use pm_sleep_ptr() when assigning the ops to the driver.
This allows the removal of the ifdef CONFIG_PM_SLEEP.
Signed-off-by: Thomas Weißschuh <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Rafael J. Wysocki <[email protected]>1 parent 0710c1c commit a56fdd8
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1277 | 1277 | | |
1278 | 1278 | | |
1279 | 1279 | | |
1280 | | - | |
1281 | 1280 | | |
1282 | 1281 | | |
1283 | 1282 | | |
| |||
1294 | 1293 | | |
1295 | 1294 | | |
1296 | 1295 | | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | 1296 | | |
1301 | | - | |
| 1297 | + | |
1302 | 1298 | | |
1303 | 1299 | | |
1304 | 1300 | | |
| |||
1308 | 1304 | | |
1309 | 1305 | | |
1310 | 1306 | | |
1311 | | - | |
| 1307 | + | |
1312 | 1308 | | |
1313 | 1309 | | |
1314 | 1310 | | |
| |||
0 commit comments