···315315316316 capbuf[OSC_QUERY_DWORD] = OSC_QUERY_ENABLE;317317 capbuf[OSC_SUPPORT_DWORD] = OSC_SB_PR3_SUPPORT; /* _PR3 is in use */318318-#if defined(CONFIG_ACPI_PROCESSOR_AGGREGATOR) ||\319319- defined(CONFIG_ACPI_PROCESSOR_AGGREGATOR_MODULE)320320- capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PAD_SUPPORT;321321-#endif322322-323323-#if defined(CONFIG_ACPI_PROCESSOR) || defined(CONFIG_ACPI_PROCESSOR_MODULE)324324- capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PPC_OST_SUPPORT;325325-#endif318318+ if (IS_ENABLED(CONFIG_ACPI_PROCESSOR_AGGREGATOR))319319+ capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PAD_SUPPORT;320320+ if (IS_ENABLED(CONFIG_ACPI_PROCESSOR))321321+ capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PPC_OST_SUPPORT;326322327323 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT;328324
+5-6
drivers/acpi/int340x_thermal.c
···3333static int int340x_thermal_handler_attach(struct acpi_device *adev,3434 const struct acpi_device_id *id)3535{3636-#if defined(CONFIG_INT340X_THERMAL) || defined(CONFIG_INT340X_THERMAL_MODULE)3737- acpi_create_platform_device(adev);3838-#elif defined(INTEL_SOC_DTS_THERMAL) || defined(INTEL_SOC_DTS_THERMAL_MODULE)3939- /* Intel SoC DTS thermal driver needs INT3401 to set IRQ descriptor */4040- if (id->driver_data == INT3401_DEVICE)3636+ if (IS_ENABLED(CONFIG_INT340X_THERMAL))4137 acpi_create_platform_device(adev);4242-#endif3838+ /* Intel SoC DTS thermal driver needs INT3401 to set IRQ descriptor */3939+ else if (IS_ENABLED(CONFIG_INTEL_SOC_DTS_THERMAL) &&4040+ id->driver_data == INT3401_DEVICE)4141+ acpi_create_platform_device(adev);4342 return 1;4443}4544
+2-2
include/acpi/button.h
···3344#include <linux/notifier.h>5566-#if defined(CONFIG_ACPI_BUTTON) || defined(CONFIG_ACPI_BUTTON_MODULE)66+#if IS_ENABLED(CONFIG_ACPI_BUTTON)77extern int acpi_lid_notifier_register(struct notifier_block *nb);88extern int acpi_lid_notifier_unregister(struct notifier_block *nb);99extern int acpi_lid_open(void);···2020{2121 return 1;2222}2323-#endif /* defined(CONFIG_ACPI_BUTTON) || defined(CONFIG_ACPI_BUTTON_MODULE) */2323+#endif /* IS_ENABLED(CONFIG_ACPI_BUTTON) */24242525#endif /* ACPI_BUTTON_H */
+1-1
include/acpi/video.h
···2424 acpi_backlight_native,2525};26262727-#if (defined CONFIG_ACPI_VIDEO || defined CONFIG_ACPI_VIDEO_MODULE)2727+#if IS_ENABLED(CONFIG_ACPI_VIDEO)2828extern int acpi_video_register(void);2929extern void acpi_video_unregister(void);3030extern int acpi_video_get_edid(struct acpi_device *device, int type,