[PATCH] RTC subsystem: fix proc output

Move the "24hr: yes" proc output from drivers to rtc proc code.  This is
required because the time value in the proc output is always in 24hr mode
regardless of the driver.

Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
Cc: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Alessandro Zummo
2006-04-10 22:54:43 -07:00
committed by Linus Torvalds
parent f90a65060e
commit adfb434125
7 changed files with 4 additions and 17 deletions

View File

@@ -227,14 +227,7 @@ static int pcf8563_rtc_set_time(struct device *dev, struct rtc_time *tm)
return pcf8563_set_datetime(to_i2c_client(dev), tm);
}
static int pcf8563_rtc_proc(struct device *dev, struct seq_file *seq)
{
seq_printf(seq, "24hr\t\t: yes\n");
return 0;
}
static struct rtc_class_ops pcf8563_rtc_ops = {
.proc = pcf8563_rtc_proc,
.read_time = pcf8563_rtc_read_time,
.set_time = pcf8563_rtc_set_time,
};