Commit 64061160 authored by Mike Frysinger's avatar Mike Frysinger Committed by Linus Torvalds

Blackfin RTC driver: cleanup proc handler (we dont need RTC reg dump now that...

Blackfin RTC driver: cleanup proc handler (we dont need RTC reg dump now that we have MMR filesystem in sysfs)
Signed-off-by: default avatarMike Frysinger <michael.frysinger@analog.com>
Signed-off-by: default avatarBryan Wu <bryan.wu@analog.com>
Acked-by: default avatarAlessandro Zummo <alessandro.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent d7827d88
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#include <asm/blackfin.h> #include <asm/blackfin.h>
#define stamp(fmt, args...) pr_debug("%s:%i: " fmt "\n", __FUNCTION__, __LINE__, ## args) #define stamp(fmt, args...) pr_debug("%s:%i: " fmt "\n", __func__, __LINE__, ## args)
#define stampit() stamp("here i am") #define stampit() stamp("here i am")
struct bfin_rtc { struct bfin_rtc {
...@@ -343,22 +343,20 @@ static int bfin_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm) ...@@ -343,22 +343,20 @@ static int bfin_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
static int bfin_rtc_proc(struct device *dev, struct seq_file *seq) static int bfin_rtc_proc(struct device *dev, struct seq_file *seq)
{ {
#define yesno(x) (x ? "yes" : "no") #define yesno(x) ((x) ? "yes" : "no")
u16 ictl = bfin_read_RTC_ICTL(); u16 ictl = bfin_read_RTC_ICTL();
stampit(); stampit();
seq_printf(seq, "alarm_IRQ\t: %s\n", yesno(ictl & RTC_ISTAT_ALARM)); seq_printf(seq,
seq_printf(seq, "wkalarm_IRQ\t: %s\n", yesno(ictl & RTC_ISTAT_ALARM_DAY)); "alarm_IRQ\t: %s\n"
seq_printf(seq, "seconds_IRQ\t: %s\n", yesno(ictl & RTC_ISTAT_SEC)); "wkalarm_IRQ\t: %s\n"
seq_printf(seq, "periodic_IRQ\t: %s\n", yesno(ictl & RTC_ISTAT_STOPWATCH)); "seconds_IRQ\t: %s\n"
#ifdef DEBUG "periodic_IRQ\t: %s\n",
seq_printf(seq, "RTC_STAT\t: 0x%08X\n", bfin_read_RTC_STAT()); yesno(ictl & RTC_ISTAT_ALARM),
seq_printf(seq, "RTC_ICTL\t: 0x%04X\n", bfin_read_RTC_ICTL()); yesno(ictl & RTC_ISTAT_ALARM_DAY),
seq_printf(seq, "RTC_ISTAT\t: 0x%04X\n", bfin_read_RTC_ISTAT()); yesno(ictl & RTC_ISTAT_SEC),
seq_printf(seq, "RTC_SWCNT\t: 0x%04X\n", bfin_read_RTC_SWCNT()); yesno(ictl & RTC_ISTAT_STOPWATCH));
seq_printf(seq, "RTC_ALARM\t: 0x%08X\n", bfin_read_RTC_ALARM());
seq_printf(seq, "RTC_PREN\t: 0x%04X\n", bfin_read_RTC_PREN());
#endif
return 0; return 0;
#undef yesno
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment