#include <linux/jiffies.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/rtc.h>
#include <linux/scmi_protocol.h>
#include <linux/scmi_imx_protocol.h>
struct scmi_imx_bbm { … };
static int scmi_imx_bbm_read_time(struct device *dev, struct rtc_time *tm)
{ … }
static int scmi_imx_bbm_set_time(struct device *dev, struct rtc_time *tm)
{ … }
static int scmi_imx_bbm_alarm_irq_enable(struct device *dev, unsigned int enable)
{ … }
static int scmi_imx_bbm_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
{ … }
static const struct rtc_class_ops smci_imx_bbm_rtc_ops = …;
static int scmi_imx_bbm_rtc_notifier(struct notifier_block *nb, unsigned long event, void *data)
{ … }
static int scmi_imx_bbm_rtc_init(struct scmi_device *sdev)
{ … }
static int scmi_imx_bbm_rtc_probe(struct scmi_device *sdev)
{ … }
static const struct scmi_device_id scmi_id_table[] = …;
MODULE_DEVICE_TABLE(scmi, scmi_id_table);
static struct scmi_driver scmi_imx_bbm_rtc_driver = …;
module_scmi_driver(…) …;
MODULE_AUTHOR(…) …;
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;