#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/io.h>
#include <linux/ktime.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/platform_device.h>
#include <linux/w1.h>
#define MXC_W1_CONTROL …
#define MXC_W1_CONTROL_RDST …
#define MXC_W1_CONTROL_WR(x) …
#define MXC_W1_CONTROL_PST …
#define MXC_W1_CONTROL_RPP …
#define MXC_W1_TIME_DIVIDER …
#define MXC_W1_RESET …
#define MXC_W1_RESET_RST …
struct mxc_w1_device { … };
static u8 mxc_w1_ds2_reset_bus(void *data)
{ … }
static u8 mxc_w1_ds2_touch_bit(void *data, u8 bit)
{ … }
static int mxc_w1_probe(struct platform_device *pdev)
{ … }
static void mxc_w1_remove(struct platform_device *pdev)
{ … }
static const struct of_device_id mxc_w1_dt_ids[] = …;
MODULE_DEVICE_TABLE(of, mxc_w1_dt_ids);
static struct platform_driver mxc_w1_driver = …;
module_platform_driver(…) …;
MODULE_LICENSE(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;