]> git.baikalelectronics.ru Git - kernel.git/commit
Input: adp5588-keys - use new PM macros
authorNuno Sá <nuno.sa@analog.com>
Wed, 31 Aug 2022 04:15:03 +0000 (21:15 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 31 Aug 2022 04:16:35 +0000 (21:16 -0700)
commit9e4f0a32cc2c518ee5956ac4f437a33d082e9621
tree29c522566601f9b5b0bea93e4e5fc2c1c0dafbf8
parentf414bd169d2933cd0d442c122a88acdd9bd6c45a
Input: adp5588-keys - use new PM macros

With the new PM macros (DEFINE_SIMPLE_DEV_PM_OPS() and pm_sleep_ptr()), the
compiler has visibility to see that the functions are not used when
!CONFIG_PM and hence, remove the dead code. As such, there's no need
for '__maybe_unused'.

Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220829131553.690063-11-nuno.sa@analog.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/adp5588-keys.c