linux/drivers/rtc/proc.c

// SPDX-License-Identifier: GPL-2.0
/*
 * RTC subsystem, proc interface
 *
 * Copyright (C) 2005-06 Tower Technologies
 * Author: Alessandro Zummo <[email protected]>
 *
 * based on arch/arm/common/rtctime.c
 */

#include <linux/module.h>
#include <linux/rtc.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>

#include "rtc-core.h"

#define NAME_SIZE

#if defined(CONFIG_RTC_HCTOSYS_DEVICE)
static bool is_rtc_hctosys(struct rtc_device *rtc)
{}
#else
static bool is_rtc_hctosys(struct rtc_device *rtc)
{
	return (rtc->id == 0);
}
#endif

static int rtc_proc_show(struct seq_file *seq, void *offset)
{}

void rtc_proc_add_device(struct rtc_device *rtc)
{}

void rtc_proc_del_device(struct rtc_device *rtc)
{}