linux/drivers/rtc/rtc-max8998.c

// SPDX-License-Identifier: GPL-2.0+
//
// RTC driver for Maxim MAX8998
//
// Copyright (C) 2010 Samsung Electronics Co.Ltd
// Author: Minkyu Kang <[email protected]>
// Author: Joonyoung Shim <[email protected]>

#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/slab.h>
#include <linux/bcd.h>
#include <linux/irqdomain.h>
#include <linux/rtc.h>
#include <linux/platform_device.h>
#include <linux/mfd/max8998.h>
#include <linux/mfd/max8998-private.h>
#include <linux/delay.h>

#define MAX8998_RTC_SEC
#define MAX8998_RTC_MIN
#define MAX8998_RTC_HOUR
#define MAX8998_RTC_WEEKDAY
#define MAX8998_RTC_DATE
#define MAX8998_RTC_MONTH
#define MAX8998_RTC_YEAR1
#define MAX8998_RTC_YEAR2
#define MAX8998_ALARM0_SEC
#define MAX8998_ALARM0_MIN
#define MAX8998_ALARM0_HOUR
#define MAX8998_ALARM0_WEEKDAY
#define MAX8998_ALARM0_DATE
#define MAX8998_ALARM0_MONTH
#define MAX8998_ALARM0_YEAR1
#define MAX8998_ALARM0_YEAR2
#define MAX8998_ALARM1_SEC
#define MAX8998_ALARM1_MIN
#define MAX8998_ALARM1_HOUR
#define MAX8998_ALARM1_WEEKDAY
#define MAX8998_ALARM1_DATE
#define MAX8998_ALARM1_MONTH
#define MAX8998_ALARM1_YEAR1
#define MAX8998_ALARM1_YEAR2
#define MAX8998_ALARM0_CONF
#define MAX8998_ALARM1_CONF
#define MAX8998_RTC_STATUS
#define MAX8998_WTSR_SMPL_CNTL
#define MAX8998_TEST

#define HOUR_12
#define HOUR_PM
#define ALARM0_STATUS
#define ALARM1_STATUS

enum {};

struct max8998_rtc_info {};

static void max8998_data_to_tm(u8 *data, struct rtc_time *tm)
{}

static void max8998_tm_to_data(struct rtc_time *tm, u8 *data)
{}

static int max8998_rtc_read_time(struct device *dev, struct rtc_time *tm)
{}

static int max8998_rtc_set_time(struct device *dev, struct rtc_time *tm)
{}

static int max8998_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{}

static int max8998_rtc_stop_alarm(struct max8998_rtc_info *info)
{}

static int max8998_rtc_start_alarm(struct max8998_rtc_info *info)
{}

static int max8998_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{}

static int max8998_rtc_alarm_irq_enable(struct device *dev,
					unsigned int enabled)
{}

static irqreturn_t max8998_rtc_alarm_irq(int irq, void *data)
{}

static const struct rtc_class_ops max8998_rtc_ops =;

static int max8998_rtc_probe(struct platform_device *pdev)
{}

static const struct platform_device_id max8998_rtc_id[] =;
MODULE_DEVICE_TABLE(platform, max8998_rtc_id);

static struct platform_driver max8998_rtc_driver =;

module_platform_driver();

MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();