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>
This commit is contained in:
parent
ebfcd24132
commit
1497ae6d30
3 changed files with 0 additions and 36 deletions
|
@ -846,16 +846,6 @@ struct mdio_smsc_config {
|
|||
const struct device *eth_dev;
|
||||
};
|
||||
|
||||
static void mdio_smsc_bus_disable(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
}
|
||||
|
||||
static void mdio_smsc_bus_enable(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
}
|
||||
|
||||
static int mdio_smsc_read(const struct device *dev, uint8_t prtad, uint8_t devad, uint16_t *data)
|
||||
{
|
||||
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
|
|||
}
|
||||
|
||||
static DEVICE_API(mdio, mdio_smsc_api) = {
|
||||
.bus_disable = mdio_smsc_bus_disable,
|
||||
.bus_enable = mdio_smsc_bus_enable,
|
||||
.read = mdio_smsc_read,
|
||||
.write = mdio_smsc_write,
|
||||
};
|
||||
|
|
|
@ -152,16 +152,6 @@ static int mdio_dwcxgmac_write(const struct device *dev, uint8_t prtad, uint8_t
|
|||
return mdio_transfer(dev, prtad, regad, MDIO_WRITE_CMD, data, NULL);
|
||||
}
|
||||
|
||||
static void mdio_dwcxgmac_bus_enable(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
}
|
||||
|
||||
static void mdio_dwcxgmac_bus_disable(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
}
|
||||
|
||||
static int mdio_dwcxgmac_initialize(const struct device *dev)
|
||||
{
|
||||
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)
|
|||
static DEVICE_API(mdio, mdio_dwcxgmac_driver_api) = {
|
||||
.read = mdio_dwcxgmac_read,
|
||||
.write = mdio_dwcxgmac_write,
|
||||
.bus_enable = mdio_dwcxgmac_bus_enable,
|
||||
.bus_disable = mdio_dwcxgmac_bus_disable,
|
||||
};
|
||||
|
||||
#define XGMAC_SNPS_DESIGNWARE_RESET_SPEC_INIT(n) .reset = RESET_DT_SPEC_INST_GET(n),
|
||||
|
|
|
@ -20,16 +20,6 @@ struct mdio_lan865x_config {
|
|||
const struct device *dev;
|
||||
};
|
||||
|
||||
static void lan865x_mdio_bus_enable(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
}
|
||||
|
||||
static void lan865x_mdio_bus_disable(const struct device *dev)
|
||||
{
|
||||
ARG_UNUSED(dev);
|
||||
}
|
||||
|
||||
static int lan865x_mdio_c22_read(const struct device *dev, uint8_t prtad, uint8_t regad,
|
||||
uint16_t *data)
|
||||
{
|
||||
|
@ -67,8 +57,6 @@ static DEVICE_API(mdio, mdio_lan865x_api) = {
|
|||
.write = lan865x_mdio_c22_write,
|
||||
.read_c45 = lan865x_mdio_c45_read,
|
||||
.write_c45 = lan865x_mdio_c45_write,
|
||||
.bus_enable = lan865x_mdio_bus_enable,
|
||||
.bus_disable = lan865x_mdio_bus_disable,
|
||||
};
|
||||
|
||||
#define MICROCHIP_LAN865X_MDIO_INIT(n) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue