summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/int340x_thermal.c
diff options
context:
space:
mode:
authorSudeep Holla <Sudeep.Holla@arm.com>2015-09-14 17:01:55 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-09-15 03:05:45 +0200
commitbcb2b0b2bae2de744223c68521cd51c57feb486c (patch)
tree37193684c8ba60ca6f9212479844b7378b0f820b /drivers/acpi/int340x_thermal.c
parentACPI: int340x_thermal: add missing CONFIG_ prefix (diff)
downloadlinux-bcb2b0b2bae2de744223c68521cd51c57feb486c.tar.xz
linux-bcb2b0b2bae2de744223c68521cd51c57feb486c.zip
ACPI: Eliminate CONFIG_.*{, _MODULE} #ifdef in favor of IS_ENABLED()
This commit removes all CONFIG_.*{,_MODULE} in ACPI code, replacing it with IS_ENABLED(). Signed-off-by: Sudeep Holla <sudeep.holla@arm.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/int340x_thermal.c')
-rw-r--r--drivers/acpi/int340x_thermal.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/acpi/int340x_thermal.c b/drivers/acpi/int340x_thermal.c
index 6c7c7975f72e..33505c651f62 100644
--- a/drivers/acpi/int340x_thermal.c
+++ b/drivers/acpi/int340x_thermal.c
@@ -33,13 +33,12 @@ static const struct acpi_device_id int340x_thermal_device_ids[] = {
static int int340x_thermal_handler_attach(struct acpi_device *adev,
const struct acpi_device_id *id)
{
-#if defined(CONFIG_INT340X_THERMAL) || defined(CONFIG_INT340X_THERMAL_MODULE)
- acpi_create_platform_device(adev);
-#elif defined(CONFIG_INTEL_SOC_DTS_THERMAL) || defined(CONFIG_INTEL_SOC_DTS_THERMAL_MODULE)
+ if (IS_ENABLED(CONFIG_INT340X_THERMAL))
+ acpi_create_platform_device(adev);
/* Intel SoC DTS thermal driver needs INT3401 to set IRQ descriptor */
- if (id->driver_data == INT3401_DEVICE)
+ else if (IS_ENABLED(CONFIG_INTEL_SOC_DTS_THERMAL) &&
+ id->driver_data == INT3401_DEVICE)
acpi_create_platform_device(adev);
-#endif
return 1;
}