public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: axp20x: Use #ifdef for checking CONFIG_ACPI
@ 2020-07-08  7:07 Krzysztof Kozlowski
  2020-07-08  7:29 ` Lee Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Krzysztof Kozlowski @ 2020-07-08  7:07 UTC (permalink / raw)
  To: Lee Jones, Chen-Yu Tsai, linux-kernel; +Cc: Krzysztof Kozlowski

Use #ifdef directive to check whether config symbol is defined and to
fix warning:

    drivers/mfd/axp20x-i2c.c:82:5: warning: "CONFIG_ACPI" is not defined [-Wundef]

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/mfd/axp20x-i2c.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mfd/axp20x-i2c.c b/drivers/mfd/axp20x-i2c.c
index bd271fbe1ec1..3c930316d48b 100644
--- a/drivers/mfd/axp20x-i2c.c
+++ b/drivers/mfd/axp20x-i2c.c
@@ -79,7 +79,7 @@ static const struct i2c_device_id axp20x_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, axp20x_i2c_id);
 
-#if CONFIG_ACPI
+#ifdef CONFIG_ACPI
 static const struct acpi_device_id axp20x_i2c_acpi_match[] = {
 	{
 		.id = "INT33F4",
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-08  7:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-08  7:07 [PATCH] mfd: axp20x: Use #ifdef for checking CONFIG_ACPI Krzysztof Kozlowski
2020-07-08  7:29 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox