Skip to content

Commit 1497ae6

Browse files
maass-hamburgkartben
authored andcommitted
drivers: mdio: remove unused bus_enable/disable
remove unused bus_enable/disable, they don't need to be implemented, if they are not needed. Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
1 parent ebfcd24 commit 1497ae6

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

drivers/ethernet/eth_smsc91x.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -846,16 +846,6 @@ struct mdio_smsc_config {
846846
const struct device *eth_dev;
847847
};
848848

849-
static void mdio_smsc_bus_disable(const struct device *dev)
850-
{
851-
ARG_UNUSED(dev);
852-
}
853-
854-
static void mdio_smsc_bus_enable(const struct device *dev)
855-
{
856-
ARG_UNUSED(dev);
857-
}
858-
859849
static int mdio_smsc_read(const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t *data)
860850
{
861851
const struct mdio_smsc_config *cfg = dev->config;
@@ -881,8 +871,6 @@ static int mdio_smsc_write(const struct device *dev, uint8_t prtad, uint8_t deva
881871
}
882872

883873
static DEVICE_API(mdio, mdio_smsc_api) = {
884-
.bus_disable = mdio_smsc_bus_disable,
885-
.bus_enable = mdio_smsc_bus_enable,
886874
.read = mdio_smsc_read,
887875
.write = mdio_smsc_write,
888876
};

drivers/mdio/mdio_dwcxgmac.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,6 @@ static int mdio_dwcxgmac_write(const struct device *dev, uint8_t prtad, uint8_t
152152
return mdio_transfer(dev, prtad, regad, MDIO_WRITE_CMD, data, NULL);
153153
}
154154

155-
static void mdio_dwcxgmac_bus_enable(const struct device *dev)
156-
{
157-
ARG_UNUSED(dev);
158-
}
159-
160-
static void mdio_dwcxgmac_bus_disable(const struct device *dev)
161-
{
162-
ARG_UNUSED(dev);
163-
}
164-
165155
static int mdio_dwcxgmac_initialize(const struct device *dev)
166156
{
167157
struct mdio_dwcxgmac_dev_data *const data = (struct mdio_dwcxgmac_dev_data *)dev->data;
@@ -206,8 +196,6 @@ static int mdio_dwcxgmac_initialize(const struct device *dev)
206196
static DEVICE_API(mdio, mdio_dwcxgmac_driver_api) = {
207197
.read = mdio_dwcxgmac_read,
208198
.write = mdio_dwcxgmac_write,
209-
.bus_enable = mdio_dwcxgmac_bus_enable,
210-
.bus_disable = mdio_dwcxgmac_bus_disable,
211199
};
212200

213201
#define XGMAC_SNPS_DESIGNWARE_RESET_SPEC_INIT(n) .reset = RESET_DT_SPEC_INST_GET(n),

drivers/mdio/mdio_lan865x.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@ struct mdio_lan865x_config {
2020
const struct device *dev;
2121
};
2222

23-
static void lan865x_mdio_bus_enable(const struct device *dev)
24-
{
25-
ARG_UNUSED(dev);
26-
}
27-
28-
static void lan865x_mdio_bus_disable(const struct device *dev)
29-
{
30-
ARG_UNUSED(dev);
31-
}
32-
3323
static int lan865x_mdio_c22_read(const struct device *dev, uint8_t prtad, uint8_t regad,
3424
uint16_t *data)
3525
{
@@ -67,8 +57,6 @@ static DEVICE_API(mdio, mdio_lan865x_api) = {
6757
.write = lan865x_mdio_c22_write,
6858
.read_c45 = lan865x_mdio_c45_read,
6959
.write_c45 = lan865x_mdio_c45_write,
70-
.bus_enable = lan865x_mdio_bus_enable,
71-
.bus_disable = lan865x_mdio_bus_disable,
7260
};
7361

7462
#define MICROCHIP_LAN865X_MDIO_INIT(n) \

0 commit comments

Comments
 (0)