Skip to content

Commit 3fe2f17

Browse files
nathanchancelinusw
authored andcommitted
pinctrl: qcom: sdm845: Fix CONFIG preprocessor guard
Clang warns when CONFIG_ACPI is unset: drivers/pinctrl/qcom/pinctrl-sdm845.c:1320:5: warning: 'CONFIG_ACPI' is not defined, evaluates to 0 [-Wundef] #if CONFIG_ACPI ^ 1 warning generated. Use ifdef instead of if to resolve this. Fixes: a229105 ("pinctrl: qcom: sdm845: Provide ACPI support") Link: ClangBuiltLinux/linux#569 Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Acked-by: Lee Jones <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent cf75b8f commit 3fe2f17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pinctrl/qcom/pinctrl-sdm845.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1317,7 +1317,7 @@ static int sdm845_pinctrl_probe(struct platform_device *pdev)
13171317
return ret;
13181318
}
13191319

1320-
#if CONFIG_ACPI
1320+
#ifdef CONFIG_ACPI
13211321
static const struct acpi_device_id sdm845_pinctrl_acpi_match[] = {
13221322
{ "QCOM0217"},
13231323
{ },

0 commit comments

Comments
 (0)