From nobody Sat Apr 18 04:21:19 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF2C0C43334 for ; Mon, 18 Jul 2022 21:28:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234265AbiGRV2i (ORCPT ); Mon, 18 Jul 2022 17:28:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234620AbiGRV2f (ORCPT ); Mon, 18 Jul 2022 17:28:35 -0400 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 104A13136B for ; Mon, 18 Jul 2022 14:28:33 -0700 (PDT) Received: by mail-pj1-x102a.google.com with SMTP id o15so12936303pjh.1 for ; Mon, 18 Jul 2022 14:28:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PVcgZzjdK9fjloy6/Y+huhUu52yh6ctU8017XyeNTLM=; b=Sa/S6jwMcJ6vjrfJHhWknnUYuPM+pYaLLPuHmCGsdMeJChAHIeOO5asROW8eyJpcIK ZVPoVHm7j1hKHIePlke4jGYo7O7x8uwE/3WaJKMTh36xmHe8nbBADJz6zFb2Ta/zswfl 3tOPxbJzDaNmEuC9x6q48jG3Yo4WXSple2DMI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=PVcgZzjdK9fjloy6/Y+huhUu52yh6ctU8017XyeNTLM=; b=p0c1dnXEQxRSEbXL1h0LF3m/WUk9SJcYB9LGCli7Gx1NfwRSd7Y5XiQSkrh3WAKOQ8 jwFGEyTARpUoyCQXG3ixMg9XL2eJmPQ68xe00Mg6MCiEWV/5cYZAXRuoNvYq+NRsIi+q 0JMNnXyanWXv4au/VfCIHrO883bmJQibEFQDWey9EindRiaH2dtKA2TRc3foUJSmNswq H5uB2mdIbZ7xsVdu0vRBRxVzxg47GaTP32bqKBej4gv8f+VuX5envm2+gJJiNitSoqDp /YYQCFK4lAp0mXgCnCebyAKQudIrdJ5BF/YiXfCYVtaffGh89wOIhAfjh/jeMraxL++2 OF5A== X-Gm-Message-State: AJIora9uucke1bOJZTHNaMucl8YbFAF9xtNPpSHF+nRlWs6/+pDBn72m JQtNH5AiWfTu6vgiH1el+C1bXEqKwXiYag== X-Google-Smtp-Source: AGRyM1tKSCH41BB852jsIS5RXGkAx+Hvett+tlV5FCfr3isJIr5ePfcCMhOC36ySIh28Iy2UYPICjA== X-Received: by 2002:a17:903:18c:b0:16c:51c6:675d with SMTP id z12-20020a170903018c00b0016c51c6675dmr29737274plg.153.1658179712184; Mon, 18 Jul 2022 14:28:32 -0700 (PDT) Received: from pmalani.c.googlers.com.com (157.214.185.35.bc.googleusercontent.com. [35.185.214.157]) by smtp.gmail.com with ESMTPSA id z9-20020a631909000000b0041992864d69sm8536830pgl.77.2022.07.18.14.28.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jul 2022 14:28:31 -0700 (PDT) From: Prashant Malani To: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, chrome-platform@lists.linux.dev Cc: bleung@chromium.org, gregkh@linuxfoundation.org, Prashant Malani , kernel test robot Subject: [PATCH v2] platform/chrome: cros_typec_switch: Add ACPI Kconfig dep Date: Mon, 18 Jul 2022 21:27:55 +0000 Message-Id: <20220718212754.1129257-1-pmalani@chromium.org> X-Mailer: git-send-email 2.37.0.170.g444d1eabd0-goog MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Add the ACPI Kconfig dependency that was missed during the initial driver submission. Fixes the following compiler errors: drivers/platform/chrome/cros_typec_switch.c:93:9: error: call to undeclared function 'acpi_evaluate_integer'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] ret =3D acpi_evaluate_integer(adev->handle, "_ADR", NULL, &index); drivers/platform/chrome/cros_typec_switch.c:93:35: error: incomplete definition of type 'struct acpi_device' ret =3D acpi_evaluate_integer(adev->handle, "_ADR", NULL, &index); Fixes: e54369058f3d ("platform/chrome: cros_typec_switch: Add switch driver= ") Reported-by: kernel test robot Signed-off-by: Prashant Malani --- Changes since v1: - Correct the malformed Reported-by tag. No functional changes. (Apologies for the quick respin.) drivers/platform/chrome/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/chrome/Kconfig b/drivers/platform/chrome/Kcon= fig index c62a514a087f..9d4fc505fa25 100644 --- a/drivers/platform/chrome/Kconfig +++ b/drivers/platform/chrome/Kconfig @@ -267,7 +267,7 @@ config CHROMEOS_PRIVACY_SCREEN =20 config CROS_TYPEC_SWITCH tristate "ChromeOS EC Type-C Switch Control" - depends on MFD_CROS_EC_DEV && TYPEC + depends on MFD_CROS_EC_DEV && TYPEC && ACPI default MFD_CROS_EC_DEV help If you say Y here, you get support for configuring the Chrome OS EC Typ= e C --=20 2.37.0.170.g444d1eabd0-goog