#include <linux/module.h>
#include <linux/device.h>
#include <linux/string.h>
#include <linux/mfd/mcp.h>
#define to_mcp(d) container_of(d, struct mcp, attached_device)
#define to_mcp_driver(d) container_of(d, struct mcp_driver, drv)
static int mcp_bus_match(struct device *dev, struct device_driver *drv)
static int mcp_bus_probe(struct device *dev)
struct mcp *mcp = to_mcp(dev);
struct mcp_driver *drv = to_mcp_driver(dev->driver);
static int mcp_bus_remove(struct device *dev)
struct mcp *mcp = to_mcp(dev);
struct mcp_driver *drv = to_mcp_driver(dev->driver);
static struct bus_type mcp_bus_type = {
.remove = mcp_bus_remove,
void mcp_set_telecom_divisor(struct mcp *mcp, unsigned int div)