Re: [PATCH] rtc: ds2404: use hw endiannes variable

2019-05-23 Thread Alexandre Belloni
On 09/05/2019 04:13:55+0200, Nicholas Mc Guire wrote: > 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

[PATCH] rtc: ds2404: use hw endiannes variable

2019-05-08 Thread Nicholas Mc Guire
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 genera