On Fri, Oct 11, 2024 at 06:18:17AM +0000, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@xxxxxxxx> > > The embedded controller code is mainly used on x86 laptops and cannot > work without PC style I/O port access. > > Make this a user-visible configuration option that is default enabled > on x86 but otherwise disabled, and that can never be enabled unless > CONFIG_HAS_IOPORT is also available. > > The empty stubs in internal.h help ignore the EC code in configurations > that don't support it. In order to see those stubs, the sbshc code also > has to include this header and drop duplicate declarations. > > All the direct callers of ec_read/ec_write already had an x86 > dependency and now also need to depend on APCI_EC. > > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> > --- > drivers/acpi/Kconfig | 11 ++++++++++- > drivers/acpi/Makefile | 2 +- > drivers/acpi/internal.h | 25 +++++++++++++++++++++++++ > drivers/acpi/sbshc.c | 9 +-------- > drivers/char/Kconfig | 1 + > drivers/hwmon/Kconfig | 3 ++- For hwmon: Acked-by: Guenter Roeck <linux@xxxxxxxxxxxx> Guenter