#include <linux/module.h>
#include <linux/platform_device.h>
#define M48T86_SECALRM 0x01
#define M48T86_MINALRM 0x03
#define M48T86_HOURALRM 0x05
#define M48T86_MONTH 0x08
#define M48T86_B_SET BIT(7)
#define M48T86_B_DM BIT(2)
#define M48T86_B_H24 BIT(1)
#define M48T86_D_VRT BIT(7)
#define M48T86_NVRAM(x) (0x0e + (x))
#define M48T86_NVRAM_LEN 114
static unsigned char m48t86_readb(struct device *dev, unsigned long addr)
struct m48t86_rtc_info *info = dev_get_drvdata(dev);
writeb(addr, info->index_reg);
value = readb(info->data_reg);
static void m48t86_writeb(struct device *dev,
unsigned char value, unsigned long addr)
struct m48t86_rtc_info *info = dev_get_drvdata(dev);