]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: intel_scu_ipc: Unify the flow in pwr_reg_rdwr()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2024 13:34:29 +0000 (16:34 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 22 Oct 2024 08:34:01 +0000 (11:34 +0300)
commit6bd35252102e2b79acb54c74527c81c09f690759
tree224b7d14895cdca01a13ae399470c53e8fa0fc84
parent81e2cc3688cb0002d22207a0a5b11be230d4ecc4
platform/x86: intel_scu_ipc: Unify the flow in pwr_reg_rdwr()

Unify the flow in pwr_reg_rdwr() with intel_scu_ipc_dev_command_with_size().
While read buffer is not currently being used by the callers of
pwr_reg_rdwr(), this might change in the future. For the existing code
it's a harmless change because the read data for the write operation
is simply discarded.

Tested-by: Ferry Toth <fntoth@gmail.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20241021133705.2933464-2-andriy.shevchenko@linux.intel.com
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel_scu_ipc.c