Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rtc: rtc-hid-sensor-time: allow full years (16bit) in HID reports
The draft for HID-sensors (HUTRR39) currently doesn't define the range for the attribute year. Asking one of the authors revealed that full years (e.g. 2013 instead of just 13) were meant. So we now allow both, 8 bit and 16 bit values for the attribute year and assuming full years when the value is 16 bits wide. We will still support 8 bit values until the specification gets final (and maybe defines a way to set the time too). Signed-off-by: Alexander Holler <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Lars-Peter Clausen <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Jiri Kosina <[email protected]> Cc: John Stultz <[email protected]> Cc: Jingoo Han <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information