#include <linux/of.h>
#include <linux/phy/phy.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <linux/gpio.h>
#include <linux/gpio/consumer.h>
#include <linux/mux/consumer.h>
struct can_transceiver_data { … };
struct can_transceiver_phy { … };
static int can_transceiver_phy_power_on(struct phy *phy)
{ … }
static int can_transceiver_phy_power_off(struct phy *phy)
{ … }
static const struct phy_ops can_transceiver_phy_ops = …;
static const struct can_transceiver_data tcan1042_drvdata = …;
static const struct can_transceiver_data tcan1043_drvdata = …;
static const struct of_device_id can_transceiver_phy_ids[] = …;
MODULE_DEVICE_TABLE(of, can_transceiver_phy_ids);
static int can_transceiver_phy_probe(struct platform_device *pdev)
{ … }
static struct platform_driver can_transceiver_phy_driver = …;
module_platform_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;