From patchwork Mon Mar 4 07:05:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 777840 Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (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 C368813FEB for ; Mon, 4 Mar 2024 07:05:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709535918; cv=none; b=RR3iSCde94vHvW9/lomtB/pZ5gbfnXVXb83Ya5UWbmqG2aVjz1dd2Rd+zRJljl1x38JWBwKQ/n5mWWc8ZVDED7mzn9F8iQfJuEc0SEFslZkuCLyOBP2ESx1TH2ZG00p8SOEnDiX/bbzEkcjWPyILK+ytPiO8+tnA5rlQ5YL/96I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709535918; c=relaxed/simple; bh=hNjxuYC2EJdA/XoKsj5uylY7h9/KQd56NM+y23zLnFE=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=lvr3AbtuWkLvtsfH2TxLkdLpLWPdpz2RVDbBchZZas7xovybv0+cvKJQazO8t6eG3ZhThhlyMLvosiYU/u25GpmfGvgsJsrAMJvFGJLPtXmKg6e9hJu1Fyxin13iSX1/7maHrwvJOmM0OqPBNSa7JCihE5TgEHWNnfW1nF9PcmA= 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=Bugxc8gL; arc=none smtp.client-ip=209.85.208.176 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Bugxc8gL" Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d382a78c38so14694781fa.1 for ; Sun, 03 Mar 2024 23:05:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709535914; x=1710140714; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=vZGUpUYM0VesXHneGzkSI0l8X+1IzpaMdy5MewuWCx4=; b=Bugxc8gLbcQ2+cvQPJ/1O1DFqxrhaKmlchtewNFn8jQiaN0CIL2aQMwONd4nL0CDHd AtqErT4VZ9KMLKWvGoniMCyzFC/iHsDv0HB8rQbxnkuQSzRey00zNq3yyVxZs65MkvJg 0p1+Wer5sc++3L4wuDunp7alm3GyyPpAJz+h0mVpBLi9/tW1+JHvLZs0lFAsOF1cOKDI dfBaakynVSGgcFAhvx4XgPR+mG/ExQsR6AhoecAwgADHSYiINee1qwI4/n1uvWFpCEXb SA+dVNFTazGX+fIZemnSY+ixGmgMavjAjcZXuXYKl3JE3Iw1j3rvS2ygQZDv9gN/sNpG HzTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709535914; x=1710140714; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vZGUpUYM0VesXHneGzkSI0l8X+1IzpaMdy5MewuWCx4=; b=nW0uZ0YkcSvaYTfgme1oKvAVUGUMQ4A16H4D5h+cYTyXEY5ToKab8SWpHewBTOzJeD 6gwmRLiRo8PqZ7GT/YWj96FadbgiSZ9UXn/GH1UC7uKDBaQzkRZ0JOH2uOw/+xT/8RdI qSEZOH/2NEHUuKIuHzvzmKB7FdwW+65TOKYDTz0o3tov3jps7vmmibDKVcY4JTjCDxz9 nmtSCeAerGnGyxCn1g+VFU90e392Z/nNirkRm8S7AnyUDC9ixvZ5Azw0x9GokH8Ta+rL hCDnaoAANRKhdoODflqKH/stMVhN6H3juYNz7eH3IzgysblkLhqNly786ohwMKMU+Zx5 NTxQ== X-Gm-Message-State: AOJu0Yzxz2IcWUKQtSQ1JNvatVCdaEiCtEDy+T5OlOnIplYX3QDzXRBq mFO9md5aFOW7D5KEsgjKfABgIACgixPsUHCRjC4UGCwrVrl0zcbH2QhuSbvEWSY= X-Google-Smtp-Source: AGHT+IFW8Mx8FI4E0PUY4m2TiAQNZqb8odfxy6I3n9gy3/58yevGa3GaBngabXuahye/TfmVqpHMyg== X-Received: by 2002:a2e:b711:0:b0:2d2:950e:2717 with SMTP id j17-20020a2eb711000000b002d2950e2717mr5298552ljo.35.1709535913963; Sun, 03 Mar 2024 23:05:13 -0800 (PST) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id h19-20020a05600c351300b00412e5e67511sm928473wmq.16.2024.03.03.23.05.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Mar 2024 23:05:13 -0800 (PST) Date: Mon, 4 Mar 2024 10:05:09 +0300 From: Dan Carpenter To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH] pinctrl: core: comment that pinctrl_add_gpio_range() is deprecated Message-ID: <533a7a10-c6eb-4ebe-adf1-f8dc95ae8d33@moroto.mountain> Precedence: bulk X-Mailing-List: linux-gpio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Disposition: inline X-Mailer: git-send-email haha only kidding The pinctrl_add_gpio_range() function is deprecated add a comment so people don't accidentally use it in new code. Signed-off-by: Dan Carpenter --- drivers/pinctrl/core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index ee56856cb80c..2d4412795ea4 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -412,6 +412,10 @@ static int pinctrl_get_device_gpio_range(struct gpio_chip *gc, * @pctldev: pin controller device to add the range to * @range: the GPIO range to add * + * DEPRECATED: Don't use this function in new code. See section 2 of + * Documentation/devicetree/bindings/gpio/gpio.txt on how to bind pinctrl and + * gpio drivers. + * * This adds a range of GPIOs to be handled by a certain pin controller. Call * this to register handled ranges after registering your pin controller. */