mfd: lpc_ich: Factor out lpc_ich_enable_spi_write()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 6 Jun 2022 16:41:29 +0000 (19:41 +0300)
committerLee Jones <lee@kernel.org>
Thu, 14 Jul 2022 09:50:14 +0000 (10:50 +0100)
commit6e3b29dbc119fa86bc25f822e8c6166552086531
tree4a925a167c664d584a44d90d421f2acf005ca5b0
parentc551bd81d198bf1dcd4398d5454acdc0309dbe77
mfd: lpc_ich: Factor out lpc_ich_enable_spi_write()

Factor out duplicate code to lpc_ich_enable_spi_write() helper function.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Henning Schild <henning.schild@siemens.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/lpc_ich.c