From nobody Wed Dec 17 17:42:44 2025 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 830C51369AE for ; Tue, 25 Jun 2024 07:38:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719301101; cv=none; b=bWkpn9eEt1aiY0K+19cja+D4mZ1Jt2sip6+ilpNaQQB3kApygBLRqxt4E2hZ+NAA9hwSW2BlErZADc2y658Ga+vJGzW/3nPGoxuVA/X/gabxEmTAD1QeqtmCo1VJqx98ZyPsgX8A2ZfBmZP6ErIg/N6H8MhDXnL/CqpUBUr93CU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719301101; c=relaxed/simple; bh=xnd34nsHVB3Bb1w9b0swEF5Kneh0p23nUetcrUBUo+Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PtJsi6FuYF7oUnZQVMy007tX83noSRZEcF0NwMeepLP+tDidXXOpvXJa4HYRKMdfVlcCYX4AcBSuTS1PpaDK0K6/kjaXKl2C0oXWVo9DuTmMQ42qWaly2h9poNXGpgiUSuHDzJhATdOImSzIKa6t5srw9Jr6lJfU5xGYjrR5qu0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl; spf=none smtp.mailfrom=bgdev.pl; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b=JXKoLgBn; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bgdev.pl Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bgdev-pl.20230601.gappssmtp.com header.i=@bgdev-pl.20230601.gappssmtp.com header.b="JXKoLgBn" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4217926991fso45631135e9.3 for ; Tue, 25 Jun 2024 00:38:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20230601.gappssmtp.com; s=20230601; t=1719301098; x=1719905898; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Kg+ROxAEkhG3YixyHjk8IESjY4JYPzhuw/Z95rZo6PY=; b=JXKoLgBnvKm0SWXb9T0dFGyGzC1GJeUSpGdFGmrwTqj1ZzGc3+rlxgZ1VRdKGHg9zQ HWxg1bvLSFTFhIPOoBgUXN/bGhQ6uIpkAyajqWz9orWcH3lHh0LjZLjraDfcl8fXkH3v ePCDU1nTwqm+TjFGenaG5BRfiZR5IADV8Nz174Kezz6TH4hQqWIJAmCFnaZcXLwCfEbq T/uXhNa4YxYIw4HlyUcazZHr/FqaTrMUstU0pYB4/DR/DyuUg5RqGrwMflBoSD+Zz2Ny tdEqTpwJq4OQan9V8epjXmQ+oXKxhbN0wkRbgpLvPZiho/SaSUS3RYRdq3fw8jdRPPAi 7HaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719301098; x=1719905898; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Kg+ROxAEkhG3YixyHjk8IESjY4JYPzhuw/Z95rZo6PY=; b=TNJBtCjhTy+jECKznuf/sIhC/QAxV9RL9XKBqZAjWH1KSLG5BUs/iKeSrk53clfLew 1uIuXjfaMSvw+uR0xkCGAXKOw43UlNgRbBO11oeDMi/QjInvOowpdPXRBYRMEIpCE0sh r6EFZHU2LKiePsSzfZmzDoLfiPpQEfm8MM+mJK0HIoYVsjLRiEt0Y7L7LKSWb1ynK3KG q6GtbRnw+2plhUPGdXwQhwLY6TqZSy0AlxzzHvqdJeKMmxLAAIimP34iboiywVwkqUEx O0gchO947fX5JePZP1QOgUpF138t+NdEWb+NROQl7icscFFLj1sSHldb3X7W3Ntqt5BU 2BYw== X-Forwarded-Encrypted: i=1; AJvYcCXQojVQuUiUaAFDJW+0Kq7nWdAJXP+42hv2kf/eZsSLF78qwirhTdCWY+AJnTr+7JOAt55z/Kv+iNn3XRdvSg5TZcZlYh0IJjILYN2m X-Gm-Message-State: AOJu0YyxwHkiqMfg8uFlicUak3PCXahUL3jbI9RYKMpAdGF2K3nGJCPz cdJapFMK4MkfIAW8BfFNxX7qY5Oo4OkP0qdNSzWzqUJzIZNL1oTlhWl6PxXvCgc= X-Google-Smtp-Source: AGHT+IGq5IuN9x17sYOYh81hjhx9M1UaQ7AfJsvFZGT4XI/Jx+CqnuM9j2WVotD0ag3CEpwFPVUmsg== X-Received: by 2002:a05:600c:4f4d:b0:424:8ff5:67cb with SMTP id 5b1f17b1804b1-4248ff5681cmr33842205e9.39.1719301097768; Tue, 25 Jun 2024 00:38:17 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:dc:7e00:2b2c:4971:1887:588b]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4248e63a897sm83139275e9.44.2024.06.25.00.38.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 00:38:17 -0700 (PDT) From: Bartosz Golaszewski To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Subject: [PATCH] gpiolib: unexport gpiochip_get_desc() Date: Tue, 25 Jun 2024 09:38:15 +0200 Message-ID: <20240625073815.12376-1-brgl@bgdev.pl> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Bartosz Golaszewski This function has been deprecated for some time and is now only used within the GPIOLIB core. Remove it from the public header and unexport it as all current users are linked against the compilation unit where it is defined. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/gpiolib.c | 1 - drivers/gpio/gpiolib.h | 1 + include/linux/gpio/driver.h | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index ed620442f32c..edaeee53db75 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -179,7 +179,6 @@ struct gpio_desc *gpiochip_get_desc(struct gpio_chip *g= c, { return gpio_device_get_desc(gc->gpiodev, hwnum); } -EXPORT_SYMBOL_GPL(gpiochip_get_desc); =20 /** * gpio_device_get_desc() - get the GPIO descriptor corresponding to the g= iven diff --git a/drivers/gpio/gpiolib.h b/drivers/gpio/gpiolib.h index a75635891c6f..4de0bf1a62d3 100644 --- a/drivers/gpio/gpiolib.h +++ b/drivers/gpio/gpiolib.h @@ -243,6 +243,7 @@ int gpio_set_debounce_timeout(struct gpio_desc *desc, u= nsigned int debounce); int gpiod_hog(struct gpio_desc *desc, const char *name, unsigned long lflags, enum gpiod_flags dflags); int gpiochip_get_ngpios(struct gpio_chip *gc, struct device *dev); +struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, unsigned int hwn= um); const char *gpiod_get_label(struct gpio_desc *desc); =20 /* diff --git a/include/linux/gpio/driver.h b/include/linux/gpio/driver.h index 6d31388dde0a..2dd7cb9cc270 100644 --- a/include/linux/gpio/driver.h +++ b/include/linux/gpio/driver.h @@ -787,7 +787,6 @@ struct gpio_desc *gpiochip_request_own_desc(struct gpio= _chip *gc, enum gpiod_flags dflags); void gpiochip_free_own_desc(struct gpio_desc *desc); =20 -struct gpio_desc *gpiochip_get_desc(struct gpio_chip *gc, unsigned int hwn= um); struct gpio_desc * gpio_device_get_desc(struct gpio_device *gdev, unsigned int hwnum); =20 --=20 2.43.0