]> git.baikalelectronics.ru Git - kernel.git/commit
net: fixed_phy: Add forward declaration for struct gpio_desc;
authorMoritz Fischer <mdf@kernel.org>
Tue, 3 Sep 2019 18:46:52 +0000 (11:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2019 09:54:14 +0000 (11:54 +0200)
commit25158af24e35b18992fa3bc508701934e1401a91
treebf31d841fa496e330c6762947c2bcdcb9ece0309
parent61665bcda96576952a93683bfc5ad92fbdef7a0c
net: fixed_phy: Add forward declaration for struct gpio_desc;

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: 9d0943536a0d ("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>
include/linux/phy_fixed.h