summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMoritz Fischer <mdf@kernel.org>2019-09-03 11:46:52 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-09-19 09:10:50 +0200
commit488eefe22491e9350e2e05d3601235b4d8eec2fb (patch)
tree1f36428621cce949ed2f1a08a6c2d0489a32ca2c /include
parente33190acd5887ca558837035389ed20aee039c1d (diff)
downloadlinux-stable-488eefe22491e9350e2e05d3601235b4d8eec2fb.tar.gz
linux-stable-488eefe22491e9350e2e05d3601235b4d8eec2fb.tar.bz2
linux-stable-488eefe22491e9350e2e05d3601235b4d8eec2fb.zip
net: fixed_phy: Add forward declaration for struct gpio_desc;
[ Upstream commit ebe26aca98fcf9fbe5017b5cbe216413cee69df5 ] Add forward declaration for struct gpio_desc in order to address the following: ./include/linux/phy_fixed.h:48:17: error: 'struct gpio_desc' declared inside parameter list [-Werror] ./include/linux/phy_fixed.h:48:17: error: its scope is only this definition or declaration, which is probably not what you want [-Werror] Fixes: 71bd106d2567 ("net: fixed-phy: Add fixed_phy_register_with_gpiod() API") Signed-off-by: Moritz Fischer <mdf@kernel.org> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phy_fixed.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/phy_fixed.h b/include/linux/phy_fixed.h
index 1e5d86ebdaeb..52bc8e487ef7 100644
--- a/include/linux/phy_fixed.h
+++ b/include/linux/phy_fixed.h
@@ -11,6 +11,7 @@ struct fixed_phy_status {
};
struct device_node;
+struct gpio_desc;
#if IS_ENABLED(CONFIG_FIXED_PHY)
extern int fixed_phy_change_carrier(struct net_device *dev, bool new_carrier);