From nobody Thu Jan 1 10:40:26 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 C8760CDB474 for ; Mon, 23 Oct 2023 11:57:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234228AbjJWL5A (ORCPT ); Mon, 23 Oct 2023 07:57:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234521AbjJWL44 (ORCPT ); Mon, 23 Oct 2023 07:56:56 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D43310EB for ; Mon, 23 Oct 2023 04:56:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10AA5C433C7; Mon, 23 Oct 2023 11:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698062212; bh=bJRfXy2TRIDrKcAouw/75Fhv7CzjeSwcjJuB4GB6vlU=; h=From:To:Cc:Subject:Date:From; b=Mn5kib3BI3Gy5PE0SXj5IdYJs0wnU7kITW871Jj8vLdJmT2LGr2tOiqQa76DwNmi6 1XOj9sUw7IYJa3/r0DzX2Co2JHDaw1J4JDlItVZQGRMNLEp/AQ+SpHni+2OCfvX769 OIBxqx+53J5hl2qsEFPnCdk3L7rp0JFRfPXLjdF7UfXdXptDwyXXcB3biQRAaZuSKT Heh7ippAW/AN5okuoG1+BfX/9T8E2qSGCCbtpb3ARSzN3MKbLQG8Uw+9ifgZUB/KCt AAx6U0dYzE7zSiPy0x4fITSAHy3lQ4cLcZIbTLy4YhA96634LhF6BdrmHoIy9ZffZe +TfNqzT14RhkQ== From: Arnd Bergmann To: Dipen Patel , Andy Shevchenko , Bartosz Golaszewski , Linus Walleij Cc: Arnd Bergmann , timestamp@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] hte: tegra194: add GPIOLIB dependency Date: Mon, 23 Oct 2023 13:56:41 +0200 Message-Id: <20231023115646.3573494-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 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" From: Arnd Bergmann The driver started calling into a few interfaces that are part of GPIOLIB a= nd don't have stub implementations otherwise: drivers/hte/hte-tegra194.c: In function 'tegra_hte_line_xlate': drivers/hte/hte-tegra194.c:424:48: error: implicit declaration of function = 'gpio_device_get_base'; did you mean 'gpio_device_get_desc'? [-Werror=3Dimp= licit-function-declaration] 424 | line_id =3D desc->attr.line_id - gpio_device_get_ba= se(gs->gdev); | ^~~~~~~~~~~~~~~~~~~~ | gpio_device_get_desc Add a Kconfig dependency to only allow building when this is defined. Fixes: dc850faa28ee0 ("hte: tegra194: don't access struct gpio_chip") Signed-off-by: Arnd Bergmann Acked-by: Dipen Patel Reviewed-by: Bartosz Golaszewski --- drivers/hte/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hte/Kconfig b/drivers/hte/Kconfig index 083e67492bf2e..641af722b555d 100644 --- a/drivers/hte/Kconfig +++ b/drivers/hte/Kconfig @@ -17,6 +17,7 @@ if HTE config HTE_TEGRA194 tristate "NVIDIA Tegra194 HTE Support" depends on (ARCH_TEGRA_194_SOC || COMPILE_TEST) + depends on GPIOLIB help Enable this option for integrated hardware timestamping engine also known as generic timestamping engine (GTE) support on NVIDIA Tegra194 --=20 2.39.2