platform/x86: msi-laptop: Add msi_scm_disable_hw_fn_handling() helper
authorHans de Goede <hdegoede@redhat.com>
Fri, 26 Aug 2022 11:14:53 +0000 (13:14 +0200)
committerHans de Goede <hdegoede@redhat.com>
Fri, 26 Aug 2022 11:16:20 +0000 (13:16 +0200)
commitc35c7b9805971c6b09180a5570088940fd90ec56
tree54005bf40c2f9f006ea7e196baae24f57ad3aeb6
parent57209ddd5be6c128cc18dad73c19d1b7f7cae6c1
platform/x86: msi-laptop: Add msi_scm_disable_hw_fn_handling() helper

Add a msi_scm_disable_hw_fn_handling() to remove the duplicate code
for this in the resume and init paths.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20220826111453.178962-2-hdegoede@redhat.com
drivers/platform/x86/msi-laptop.c