Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp994257ybn; Wed, 25 Sep 2019 10:41:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqzOUnh5418n9z6utNlmGQmPgVxVFN7qYhFCU+SDITCcmTv3FsxHmSOGCUc0ZBsCEgOMy/Hj X-Received: by 2002:a17:906:4a51:: with SMTP id a17mr341800ejv.279.1569433276877; Wed, 25 Sep 2019 10:41:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569433276; cv=none; d=google.com; s=arc-20160816; b=VQMGRt7wv/0wqOLS3iOvb/+irrCnrw67jgvEz2OnBOXMuWARq/L03I0Wv6T9IX+oc3 2AzddpNIkNpHjGvJP/qJwRrL+Vt5S+DySvihtOBE2sIBJX0Pd5GbN4FjJnROYHTEXFho JtIiX1S6hz9Rmy12eFRBFNmA3UOyRnT/PlMOO/H0XPeMkal1wmhd4SH9W0z81YzDNDIG TF0aaP7q3kzNWlUnYsi8yjrXsfCvgX02GV7Vg2nFxCUmlmjYZKRNKcACV9WIgivkx7EI Gzwk6vVAQ25LW+I+uElPu8AZgjciR44kU2EChV555+f5nH3ddC30S372WwMP2QjERi2n vohQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=Cn9/9Me6Kmp4Xn9AfJMQMku3qxEXOlFZIGtDmEDrJpc=; b=EfXnQCFNiBKayp/OgA0URQGe2/xki4AVTB4uHTj++MdT2LtxeornbT47ELVIlDZP5U 9waFIQcC8FO4lD6sJjdjlmInd+PUyp+JnaNo9P0FjVFSwcCcNzmuyMcHW50I+01jns8c jKoCKNd9nNVYYYZB9lcqKSrxG48hZznnAkiTWK6Fx0sFgRB4V4e61Rm+ZkBObo2PzhKu h/Wq5E9g0B0faFHe3/KVob1rFJm/I8TeWQ5x2KZUttM6527VYUGEpf2UMhxbhnpVfEIO mixdcUUJQff2J2Fnx0KhlGxFyDwOSfgkVGFPcU8C4ZXjoc8LKxhw+n4dkT+ToFJfOmTw BZIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=abcoxhvN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e43si3810735eda.296.2019.09.25.10.40.52; Wed, 25 Sep 2019 10:41:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=abcoxhvN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407446AbfIWOUN (ORCPT + 99 others); Mon, 23 Sep 2019 10:20:13 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:36434 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2407008AbfIWOUN (ORCPT ); Mon, 23 Sep 2019 10:20:13 -0400 Received: by mail-lj1-f196.google.com with SMTP id v24so13925167ljj.3 for ; Mon, 23 Sep 2019 07:20:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Cn9/9Me6Kmp4Xn9AfJMQMku3qxEXOlFZIGtDmEDrJpc=; b=abcoxhvNE4QzsWdjpcm4fIk+YAxDnJvfoFRGb46mpPwEFg0aOpeJ0eaheg3tZgT4ZG ojpl8m/oDAh+qYbzYsIcSeNXc5m5DY3mfdWvxLXTBeWP7wfLsaIXItCLI6UZUPW+vtJ1 VGOT858b8NEkfBIvrgsoW5+e3A7n18FZCZM84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Cn9/9Me6Kmp4Xn9AfJMQMku3qxEXOlFZIGtDmEDrJpc=; b=LAtc8ShgXk2+0UKtsHYeivajA3MhggtFWOJi6VA/piH+qHMeBPhcfjn+W/nDoll6WD AMZDUx4moceBEnSsLG3oofO4KU979FnzuXFGSUeHnmfHM81ApXPz6Ddx43KO7Vcm1ygu daHdw9601BUvAfUeIca34Ogt+JbkV8Id/9l8U95nPB8a7VNomKa7V2sF07NoN43vwBpz qZKF3lqUjN73CWOnpCmfmht+mpnS5yflrwNAzirt0YbgoHNQrjO8bmzYpmcU/xc+UkhE DKW6vs0w5IMHaRmw8tDAAkMcbor3jrlVxewfjlaRIGX0QOO6XDRih5/gLCXchiQoCJNd tVjg== X-Gm-Message-State: APjAAAUprvBtbLKeNA4YCS84MeOXMA05jQm7BnRMVAI2Ph9ZbSYhr8tm bJhdKyC+MwpIcjG3xqjbk29UuyCZ+X7So4nV X-Received: by 2002:a2e:3902:: with SMTP id g2mr17815555lja.196.1569248411411; Mon, 23 Sep 2019 07:20:11 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id b21sm2230125lff.96.2019.09.23.07.20.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Sep 2019 07:20:10 -0700 (PDT) From: Rasmus Villemoes To: Linus Walleij Cc: Tony Lindgren , Rasmus Villemoes , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl: devicetree.c: remove orphan pinctrl_dt_has_hogs() Date: Mon, 23 Sep 2019 16:20:05 +0200 Message-Id: <20190923142005.5632-1-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The helper pinctrl_dt_has_hogs() was introduced in 99e4f67508e1 (pinctrl: core: Use delayed work for hogs), but the sole use then got removed shortly after in 950b0d91dc10 (pinctrl: core: Fix regression caused by delayed work for hogs). Signed-off-by: Rasmus Villemoes --- drivers/pinctrl/devicetree.c | 15 --------------- drivers/pinctrl/devicetree.h | 7 ------- 2 files changed, 22 deletions(-) diff --git a/drivers/pinctrl/devicetree.c b/drivers/pinctrl/devicetree.c index 5d6d8b1e9062..6716a406d128 100644 --- a/drivers/pinctrl/devicetree.c +++ b/drivers/pinctrl/devicetree.c @@ -166,21 +166,6 @@ static int dt_remember_dummy_state(struct pinctrl *p, const char *statename) return dt_remember_or_free_map(p, statename, NULL, map, 1); } -bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev) -{ - struct device_node *np; - struct property *prop; - int size; - - np = pctldev->dev->of_node; - if (!np) - return false; - - prop = of_find_property(np, "pinctrl-0", &size); - - return prop ? true : false; -} - int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev) { struct device_node *np = p->dev->of_node; diff --git a/drivers/pinctrl/devicetree.h b/drivers/pinctrl/devicetree.h index 00e645d7fac7..efa80779de4f 100644 --- a/drivers/pinctrl/devicetree.h +++ b/drivers/pinctrl/devicetree.h @@ -9,8 +9,6 @@ struct of_phandle_args; #ifdef CONFIG_OF -bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev); - void pinctrl_dt_free_maps(struct pinctrl *p); int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev); @@ -23,11 +21,6 @@ int pinctrl_parse_index_with_args(const struct device_node *np, #else -static inline bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev) -{ - return false; -} - static inline int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev) { -- 2.20.1