mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
Blackfin RTC driver: shave off another memcpy() by using assignment.
Signed-off-by: Mike Frysinger <[email protected]> Signed-off-by: Bryan Wu <[email protected]> Acked-by: Alessandro Zummo <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
68db30472d
commit
48c1a56b4b
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ static int bfin_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
|
|||
{
|
||||
struct bfin_rtc *rtc = dev_get_drvdata(dev);
|
||||
dev_dbg_stamp(dev);
|
||||
memcpy(&alrm->time, &rtc->rtc_alarm, sizeof(struct rtc_time));
|
||||
alrm->time = rtc->rtc_alarm;
|
||||
alrm->enabled = !!(bfin_read_RTC_ICTL() & (RTC_ISTAT_ALARM | RTC_ISTAT_ALARM_DAY));
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue