aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorJonathan Cameron <[email protected]>2023-01-14 17:16:09 +0000
committerDmitry Torokhov <[email protected]>2023-01-27 14:49:52 -0800
commit452fcd2dcb1d74de99608930397857204f1335e6 (patch)
treed9f51808c119c78618f275023af815c484bcdfe1 /lib/mpi/mpi-bit.c
parente2eaf9e0e10c8ce2b2740a89d1fab0649345e353 (diff)
Input: rmi4 - switch to SYSTEM_SLEEP/RUNTIME_PM_OPS() and pm_ptr()
SET_SYSTEM_SLEEP_PM_OPS() and SET_RUNTIME_PM_OPS() are deprecated as they requires explicit protection against unused function warnings. The new combination of pm_ptr() and SYSTEM_SLEEP_PM_OPS() / RUNTIME_PM_OPS() allows the compiler to see the functions, thus suppressing the warning, but still allowing the unused code to be removed. Thus also drop the #ifdef guards. Whilst all 3 sets of callbacks are similar, there are small differences that make it challenging to use a single pm_dev_ops structure - hence leave the duplication as it stands. Signed-off-by: Jonathan Cameron <[email protected]> Cc: Matthias Schiffer <[email protected]> Cc: Lyude Paul <[email protected]> Cc: Andrew Duggan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Torokhov <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions