OSDN Git Service

rtc: ds2404: use hw endiannes variable
authorNicholas Mc Guire <hofrat@osadl.org>
Thu, 9 May 2019 02:13:55 +0000 (04:13 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Thu, 23 May 2019 15:42:25 +0000 (17:42 +0200)
commit8aec4b875008b98349222f3fbe8b86051d0fab4f
tree3b7067e25cfff4c28608dfa68431264421876527
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
rtc: ds2404: use hw endiannes variable

Converting from hardware to host endiannes was done using reassignment
to the same variable which makes sparse unhappy as it can not verify
the endiannes handling properly. To allow sparse to verify endiannes
handling an explicit __le32 is introduced. Note that this patch does
not change the generated binary (x86_64 and ppc64 binary diff).

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-ds2404.c