#include <linux/device.h>
#include <linux/mdio-mux.h>
#include <linux/module.h>
#include <linux/of_address.h>
#include <linux/of_mdio.h>
#include <linux/phy.h>
#include <linux/platform_device.h>
struct mdio_mux_mmioreg_state { … };
static int mdio_mux_mmioreg_switch_fn(int current_child, int desired_child,
void *data)
{ … }
static int mdio_mux_mmioreg_probe(struct platform_device *pdev)
{ … }
static void mdio_mux_mmioreg_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id mdio_mux_mmioreg_match[] = …;
MODULE_DEVICE_TABLE(of, mdio_mux_mmioreg_match);
static struct platform_driver mdio_mux_mmioreg_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;