#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/can.h>
#include <linux/can/dev.h>
#include <linux/can/platform/cc770.h>
#include "cc770.h"
#define DRV_NAME …
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;
MODULE_ALIAS(…) …;
#define CC770_PLATFORM_CAN_CLOCK …
static u8 cc770_platform_read_reg(const struct cc770_priv *priv, int reg)
{ … }
static void cc770_platform_write_reg(const struct cc770_priv *priv, int reg,
u8 val)
{ … }
static int cc770_get_of_node_data(struct platform_device *pdev,
struct cc770_priv *priv)
{ … }
static int cc770_get_platform_data(struct platform_device *pdev,
struct cc770_priv *priv)
{ … }
static int cc770_platform_probe(struct platform_device *pdev)
{ … }
static void cc770_platform_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id cc770_platform_table[] = …;
MODULE_DEVICE_TABLE(of, cc770_platform_table);
static struct platform_driver cc770_platform_driver = …;
module_platform_driver(…) …;