From: Alessandro Zummo <a.zummo@towertech.it>
To: linux-kernel@vger.kernel.org
Cc: akpm@zip.com.au, Richard Purdie <rpurdie@rpsys.net>
Subject: [PATCH 03/18] RTC subsystem, ARM Integrator cleanup
Date: Sat, 18 Mar 2006 18:19:49 +0100 [thread overview]
Message-ID: <20060318171947.432965000@towertech.it> (raw)
In-Reply-To: 20060318171946.821316000@towertech.it
[-- Attachment #1: rtc-arm-integrator-cleanup.patch --]
[-- Type: text/plain, Size: 1969 bytes --]
From: Richard Purdie <rpurdie@rpsys.net>
Fix some namespace conflicts between the RTC subsystem and the ARM
Integrator time functions.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Alessandro Zummo <a.zummo@towertech.it>
---
arch/arm/mach-integrator/time.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
--- linux-rtc.orig/arch/arm/mach-integrator/time.c 2006-03-03 00:15:21.000000000 +0100
+++ linux-rtc/arch/arm/mach-integrator/time.c 2006-03-05 01:22:45.000000000 +0100
@@ -40,13 +40,13 @@ static int integrator_set_rtc(void)
return 1;
}
-static int rtc_read_alarm(struct rtc_wkalrm *alrm)
+static int integrator_rtc_read_alarm(struct rtc_wkalrm *alrm)
{
rtc_time_to_tm(readl(rtc_base + RTC_MR), &alrm->time);
return 0;
}
-static inline int rtc_set_alarm(struct rtc_wkalrm *alrm)
+static inline int integrator_rtc_set_alarm(struct rtc_wkalrm *alrm)
{
unsigned long time;
int ret;
@@ -62,7 +62,7 @@ static inline int rtc_set_alarm(struct r
return ret;
}
-static int rtc_read_time(struct rtc_time *tm)
+static int integrator_rtc_read_time(struct rtc_time *tm)
{
rtc_time_to_tm(readl(rtc_base + RTC_DR), tm);
return 0;
@@ -76,7 +76,7 @@ static int rtc_read_time(struct rtc_time
* edge of the 1Hz clock, we must write the time one second
* in advance.
*/
-static inline int rtc_set_time(struct rtc_time *tm)
+static inline int integrator_rtc_set_time(struct rtc_time *tm)
{
unsigned long time;
int ret;
@@ -90,10 +90,10 @@ static inline int rtc_set_time(struct rt
static struct rtc_ops rtc_ops = {
.owner = THIS_MODULE,
- .read_time = rtc_read_time,
- .set_time = rtc_set_time,
- .read_alarm = rtc_read_alarm,
- .set_alarm = rtc_set_alarm,
+ .read_time = integrator_rtc_read_time,
+ .set_time = integrator_rtc_set_time,
+ .read_alarm = integrator_rtc_read_alarm,
+ .set_alarm = integrator_rtc_set_alarm,
};
static irqreturn_t arm_rtc_interrupt(int irq, void *dev_id,
--
next prev parent reply other threads:[~2006-03-18 17:21 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-18 17:19 [PATCH 00/18] RTC subsystem Alessandro Zummo
2006-03-18 17:19 ` [PATCH 01/18] RTC Subsystem, library functions Alessandro Zummo
2006-03-20 19:18 ` Kumar Gala
2006-03-18 17:19 ` [PATCH 02/18] RTC subsystem, ARM cleanup Alessandro Zummo
2006-03-18 17:19 ` Alessandro Zummo [this message]
2006-03-18 17:19 ` [PATCH 04/18] RTC subsystem, MIPS cleanup Alessandro Zummo
2006-03-18 17:19 ` [PATCH 05/18] RTC subsystem, class Alessandro Zummo
2006-03-18 17:19 ` [PATCH 06/18] RTC subsystem, I2C cleanup Alessandro Zummo
2006-03-18 17:19 ` [PATCH 07/18] RTC subsystem, I2C driver ids Alessandro Zummo
2006-03-18 17:19 ` [PATCH 08/18] RTC subsystem, sysfs interface Alessandro Zummo
2006-03-18 17:19 ` [PATCH 09/18] RTC subsystem, proc interface Alessandro Zummo
2006-03-18 17:19 ` [PATCH 10/18] RTC subsystem, dev interface Alessandro Zummo
2006-03-18 17:19 ` [PATCH 11/18] RTC subsystem, X1205 driver Alessandro Zummo
2006-03-18 17:19 ` [PATCH 12/18] RTC subsystem, test device/driver Alessandro Zummo
2006-03-18 17:19 ` [PATCH 13/18] RTC subsystem, DS1672 driver Alessandro Zummo
2006-03-18 17:20 ` [PATCH 14/18] RTC subsystem, PCF8563 driver Alessandro Zummo
2006-03-18 17:20 ` [PATCH 15/18] RTC subsystem, RS5C372 driver Alessandro Zummo
2006-03-18 17:20 ` [PATCH 16/18] RTC subsystem, EP93XX driver Alessandro Zummo
2006-03-18 17:20 ` [PATCH 17/18] RTC subsystem, SA1100/PXA2XX driver Alessandro Zummo
2006-03-18 17:20 ` [PATCH 18/18] RTC subsystem, M48T86 driver Alessandro Zummo
2006-03-28 16:25 ` [PATCH 00/18] RTC subsystem Kumar Gala
2006-03-28 16:43 ` Alessandro Zummo
2006-03-28 17:17 ` Kumar Gala
2006-03-28 17:51 ` Alessandro Zummo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060318171947.432965000@towertech.it \
--to=a.zummo@towertech.it \
--cc=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox