[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
@@ -151,9 +151,8 @@ static int rs5c372_rtc_proc(struct device *dev, struct seq_file *seq)
|
||||
{
|
||||
int err, osc, trim;
|
||||
|
||||
seq_printf(seq, "24hr\t\t: yes\n");
|
||||
|
||||
if ((err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim)) == 0) {
|
||||
err = rs5c372_get_trim(to_i2c_client(dev), &osc, &trim);
|
||||
if (err == 0) {
|
||||
seq_printf(seq, "%d.%03d KHz\n", osc / 1000, osc % 1000);
|
||||
seq_printf(seq, "trim\t: %d\n", trim);
|
||||
}
|
||||
|
Reference in New Issue
Block a user