From patchwork Thu Jan 25 08:16:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 1890580 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=VFzjg4ew; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:40f1:3f00::1; helo=sy.mirrors.kernel.org; envelope-from=linux-gpio+bounces-2553-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [IPv6:2604:1380:40f1:3f00::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TLDFW3Wz5z23f0 for ; Thu, 25 Jan 2024 19:17:03 +1100 (AEDT) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id C4589B2889A for ; Thu, 25 Jan 2024 08:17:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E6E11947E; Thu, 25 Jan 2024 08:16:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="VFzjg4ew" X-Original-To: linux-gpio@vger.kernel.org Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 583BF1759E for ; Thu, 25 Jan 2024 08:16:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170571; cv=none; b=i8z4XzjiOVbhWwmKEQ3Os4vGUMugorjo8B46OlvUMMxGLRzPH0uNgI/hPyOJnoG4BrP6RPwJ4Ejc1XJ8xpjU4wkVvys5bsXMZHpgSkVOnw1hifur5oqRUFg2xFEPzOugCwvBGZn+lSmI8anK/lssOvlVBJgOhoToYyJPhTeM41Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706170571; c=relaxed/simple; bh=jaCgGOlshk2nOQ0HEUZD7VFYGGtzHGKiLMGwEMepQWk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=KvmcVtiJ4wibiWZVZd3Y1bwCOd0ai1Ig/mmeo+jnJEmO90SYvGI2An/kgUxqTxkrZmSDb+XdUiCUvkDSu4T+sXjaG0JBvkVMIl+5tKm1pta45wV7dnlsYlYS+74SRJqO//zFqjPYTno9JYEEBx/AiB2cFjbAICeUcrhG3radGqQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=VFzjg4ew; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-55cca88b6a5so1186405a12.1 for ; Thu, 25 Jan 2024 00:16:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706170567; x=1706775367; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=yokV3KsZTLtR361FMJ3GYZw7aKtxmjchO95DV9+f45k=; b=VFzjg4ewYsvCIbtOR68R7mS8Bs5iXNZniys8SPrtfw5rKF9nEZw5bKlWICe1dl+Iww Cbm0mgVudul0cRA8VkNUf1unJj61sXYe4cRmhqfAzpAETPyZcHENWiNE+8hielh576bD 3l4ZRVe511R0hmC/BoiiBI+jVIM+YCirsI9vAz6ccAGbfvprftZY8yJBS2Kgakq7gZH2 80DbrwK8JsYtkm9K3HOIXuNOParrClx/rKuz7gyHoxj8mTuUIoCinsH3bBIwMda9Pix/ /PXdAcusxwlly+rveUr0QjclAFArGb69qJC7kuvUVF59cmX1IkqtOf0VQ/arxFd7ssGm eKzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706170567; x=1706775367; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yokV3KsZTLtR361FMJ3GYZw7aKtxmjchO95DV9+f45k=; b=o6aoW0ruF8g/mpQ2PkONJ1LoS/l7bYO45Ap2EdgqHvBQotl0JI2B4Hn1IjP+m7WDk0 ooY3OS61tRJy3OrYrNG0vScH3g9KcsA8mo6hCyxEDCuC0ge9AtULvnitpl+HI0+kTcYV TZjokALNF6WT0hAkAPbBfMxEsV3ovHlD9WfwSxUF7arvWTXOyBJa64/feiksx2n/cSH4 bAHPkjfTFvTxiNAwsuQEKTCbKadMNXxVhehubstyKzCOZTqIcQl/wltEBvD9N+s/Gj+J R/AhGxzv8yMq5RhHq7ig5SWBBUHX1gVN7jHiwpsbJUCRC2ZfjntZoDhUzPFnE7ygBRx8 +/jg== X-Gm-Message-State: AOJu0YwUdDnDMYHHBm9KFz+egG7hVvUMjSIjCZsRsWQfqtSLmtWcRsrN VEYAL/jcqwqKuEH6V512QAFXrAAv1nNWoemznL+F5D5NdFq/nO+eAy6j/Uqlojs= X-Google-Smtp-Source: AGHT+IEG26rh2+JjBMSIa5yNNaPofjUDUvnStFMwaZzRZP98kED/r9+kUzFCNZFiLYA1/W/RRAF91Q== X-Received: by 2002:a05:6402:1d55:b0:55c:661b:7fd3 with SMTP id dz21-20020a0564021d5500b0055c661b7fd3mr379652edb.70.1706170567639; Thu, 25 Jan 2024 00:16:07 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id f21-20020a056402195500b0055c63205052sm3410210edz.37.2024.01.25.00.16.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 00:16:07 -0800 (PST) From: Krzysztof Kozlowski To: Linus Walleij , Bartosz Golaszewski , Peter Rosin , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , stable@vger.kernel.org, kernel test robot , Philipp Zabel Subject: [PATCH 3/3] gpiolib: add gpio_device_get_label() stub for !GPIOLIB Date: Thu, 25 Jan 2024 09:16:01 +0100 Message-Id: <20240125081601.118051-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240125081601.118051-1-krzysztof.kozlowski@linaro.org> References: <20240125081601.118051-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add empty stub of gpio_device_get_label() when GPIOLIB is not enabled. Cc: Fixes: d1f7728259ef ("gpiolib: provide gpio_device_get_label()") Suggested-by: kernel test robot Signed-off-by: Krzysztof Kozlowski --- Cc: Philipp Zabel Reset framework will need it: https://lore.kernel.org/oe-kbuild-all/202401250958.YksQmnWj-lkp@intel.com/ --- include/linux/gpio/driver.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index c1df7698edb0..7f75c9a51874 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -831,6 +831,12 @@ static inline int gpio_device_get_base(struct gpio_device *gdev) return -ENODEV; } +static inline const char *gpio_device_get_label(struct gpio_device *gdev) +{ + WARN_ON(1); + return NULL; +} + static inline int gpiochip_lock_as_irq(struct gpio_chip *gc, unsigned int offset) {