mirror of
https://github.com/torvalds/linux.git
synced 2024-12-28 22:02:28 +00:00
pinctrl: devicetree.c: remove orphan pinctrl_dt_has_hogs()
The helper pinctrl_dt_has_hogs() was introduced in99e4f67508
(pinctrl: core: Use delayed work for hogs), but the sole use then got removed shortly after in950b0d91dc
(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>
This commit is contained in:
parent
9978339ae4
commit
037699139e
@ -181,21 +181,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;
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user