static void s3c2410_rtc_getalarm(struct rtc_wkalrm *alrm) 
static int s3c2410_rtc_getalarm(struct rtc_wkalrm *alrm) 
static void s3c2410_rtc_getalarm(struct rtc_wkalrm *alrm){	struct rtc_time *alm_tm = &alrm->time;	unsigned int alm_en;	alm_tm->tm_sec  = readb(S3C2410_ALMSEC);	alm_tm->tm_min  = readb(S3C2410_ALMMIN);	alm_tm->tm_hour = readb(S3C2410_ALMHOUR);	alm_tm->tm_mon  = readb(S3C2410_ALMMON);	alm_tm->tm_mday = readb(S3C2410_ALMDATE);	alm_tm->tm_year = readb(S3C2410_ALMYEAR);	alm_en = readb(S3C2410_RTCALM);	pr_debug("read alarm %02x %02x.%02x.%02x %02x/%02x/%02x\n",		 alm_en,		 alm_tm->tm_year, alm_tm->tm_mon, alm_tm->tm_mday,		 alm_tm->tm_hour, alm_tm->tm_min, alm_tm->tm_sec);	/* decode the alarm enable field */	if (alm_en & S3C2410_RTCALM_SECEN) {		BCD_TO_BIN(alm_tm->tm_sec);	} else {		alm_tm->tm_sec = 0xff;	}	if (alm_en & S3C2410_RTCALM_MINEN) {		BCD_TO_BIN(alm_tm->tm_min);	} else {		alm_tm->tm_min = 0xff;	}	if (alm_en & S3C2410_RTCALM_HOUREN) {		BCD_TO_BIN(alm_tm->tm_hour);	} else {		alm_tm->tm_hour = 0xff;	}	if (alm_en & S3C2410_RTCALM_DAYEN) {		BCD_TO_BIN(alm_tm->tm_mday);	} else {		alm_tm->tm_mday = 0xff;	}	if (alm_en & S3C2410_RTCALM_MONEN) {		BCD_TO_BIN(alm_tm->tm_mon);		alm_tm->tm_mon -= 1;	} else {		alm_tm->tm_mon = 0xff;	}	if (alm_en & S3C2410_RTCALM_YEAREN) {		BCD_TO_BIN(alm_tm->tm_year);	} else {		alm_tm->tm_year = 0xffff;	}	/* todo - set alrm->enabled ? */}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/d5aa207e46ff7ee838683a7d95ecf46fe42a9a56/s3c2410-rtc.c/buggy/drivers/char/s3c2410-rtc.c