This fixes several bugs in the code to set just the time (and
authorJohn Bowler <jbowler@nslu2-linux.org>
Wed, 25 May 2005 04:48:17 +0000 (04:48 +0000)
committerJohn Bowler <jbowler@nslu2-linux.org>
Wed, 25 May 2005 04:48:17 +0000 (04:48 +0000)
commit5ae3e554f63cd6005a83b76da691946dd4dbb1c8
treeb4f65dc735c0258fbf4bc2e00cbabd41e625d0a1
parent1ee2bff5e2df9d863c1b74d2a9a5af8b6688ec1e
This fixes several bugs in the code to set just the time (and
not the date as well) on the RTC.  The low level function
x1205_set_datetime always wrote the date, even if it wasn't
given, resulting (typically) in the write of 0 bytes for the
mday,month and year.  It now only write h/m/s if the date is not
given.  The validate_tm API always checked the date, even if it
wasn't given (NOTE: the add of 'epoch' rather than 1900 may be
wrong, but it works at present).

The sync API fails to handle large resets, this problem still
exists, although the API is probably slightly more optimal.

BKrev: 4294039111Q_tc0c6nvKwVJbRiQY_w
packages/linux/openslug-kernel-2.6.11.2/x1205-rtc.c
packages/linux/openslug-kernel_2.6.11.2.bb