OSDN Git Service

mfd: intel-m10-bmc: Split into core and spi specific parts
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 16 Jan 2023 10:08:38 +0000 (12:08 +0200)
committerLee Jones <lee@kernel.org>
Fri, 27 Jan 2023 10:35:00 +0000 (10:35 +0000)
commit603aed8ffd4c9cb633c05a514cfb5e8ca6b0751d
tree5d5475c024db98efff6f3ed2716059d6d548439e
parent85ba469090ed77bfbc14c418ad79646681e6606d
mfd: intel-m10-bmc: Split into core and spi specific parts

Split the common code from intel-m10-bmc driver into intel-m10-bmc-core
and move the SPI bus parts into an interface specific file.

intel-m10-bmc-core becomes the core MFD functions which can support
multiple bus interface like SPI bus.

Co-developed-by: Tianfei zhang <tianfei.zhang@intel.com>
Signed-off-by: Tianfei zhang <tianfei.zhang@intel.com>
Reviewed-by: Russ Weight <russell.h.weight@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net> # hwmon
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20230116100845.6153-5-ilpo.jarvinen@linux.intel.com
MAINTAINERS
drivers/fpga/Kconfig
drivers/hwmon/Kconfig
drivers/mfd/Kconfig
drivers/mfd/Makefile
drivers/mfd/intel-m10-bmc-core.c [new file with mode: 0644]
drivers/mfd/intel-m10-bmc-spi.c [moved from drivers/mfd/intel-m10-bmc.c with 59% similarity]
include/linux/mfd/intel-m10-bmc.h