diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-09-06 13:49:21 -0700 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2022-09-15 11:43:51 +0200 |
commit | 7b77bb5c8130625dd4dac70e1968269a010adf6d (patch) | |
tree | 26a5df08b3459f3c2af36b9f1ed98f984dfdecb3 /drivers/net/ethernet/micrel/ks8851.h | |
parent | db49ca38579d44db7c246c5b74824b6406319b40 (diff) |
net: ks8851: switch to using gpiod API
This patch switches the driver away from legacy gpio/of_gpio API to
gpiod API, and removes use of of_get_named_gpio_flags() which I want to
make private to gpiolib.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20220906204922.3789922-2-dmitry.torokhov@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/micrel/ks8851.h')
-rw-r--r-- | drivers/net/ethernet/micrel/ks8851.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/micrel/ks8851.h b/drivers/net/ethernet/micrel/ks8851.h index 6f34a61739b6..fecd43754cea 100644 --- a/drivers/net/ethernet/micrel/ks8851.h +++ b/drivers/net/ethernet/micrel/ks8851.h @@ -403,7 +403,7 @@ struct ks8851_net { struct eeprom_93cx6 eeprom; struct regulator *vdd_reg; struct regulator *vdd_io; - int gpio; + struct gpio_desc *gpio; struct mii_bus *mii_bus; void (*lock)(struct ks8851_net *ks, |