You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[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:
committed by
Linus Torvalds
parent
f90a65060e
commit
adfb434125
@@ -127,9 +127,6 @@ static int m48t86_rtc_proc(struct device *dev, struct seq_file *seq)
|
||||
|
||||
reg = ops->readb(M48T86_REG_B);
|
||||
|
||||
seq_printf(seq, "24hr\t\t: %s\n",
|
||||
(reg & M48T86_REG_B_H24) ? "yes" : "no");
|
||||
|
||||
seq_printf(seq, "mode\t\t: %s\n",
|
||||
(reg & M48T86_REG_B_DM) ? "binary" : "bcd");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user