Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: devicetree.c: remove orphan pinctrl_dt_has_hogs()

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 <linux@rasmusvillemoes.dk>
Link: https://lore.kernel.org/r/20190923142005.5632-1-linux@rasmusvillemoes.dk
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Rasmus Villemoes and committed by
Linus Walleij
03769913 9978339a

-22
-15
drivers/pinctrl/devicetree.c
··· 181 181 return dt_remember_or_free_map(p, statename, NULL, map, 1); 182 182 } 183 183 184 - bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev) 185 - { 186 - struct device_node *np; 187 - struct property *prop; 188 - int size; 189 - 190 - np = pctldev->dev->of_node; 191 - if (!np) 192 - return false; 193 - 194 - prop = of_find_property(np, "pinctrl-0", &size); 195 - 196 - return prop ? true : false; 197 - } 198 - 199 184 int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev) 200 185 { 201 186 struct device_node *np = p->dev->of_node;
-7
drivers/pinctrl/devicetree.h
··· 9 9 10 10 #ifdef CONFIG_OF 11 11 12 - bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev); 13 - 14 12 void pinctrl_dt_free_maps(struct pinctrl *p); 15 13 int pinctrl_dt_to_map(struct pinctrl *p, struct pinctrl_dev *pctldev); 16 14 ··· 20 22 struct of_phandle_args *out_args); 21 23 22 24 #else 23 - 24 - static inline bool pinctrl_dt_has_hogs(struct pinctrl_dev *pctldev) 25 - { 26 - return false; 27 - } 28 25 29 26 static inline int pinctrl_dt_to_map(struct pinctrl *p, 30 27 struct pinctrl_dev *pctldev)