rtc: m41t80: fix m41t80_sqw_round_rate return value
authorTroy Kisky <troy.kisky@boundarydevices.com>
Fri, 3 Nov 2017 01:58:13 +0000 (18:58 -0700)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 8 Nov 2017 06:52:23 +0000 (07:52 +0100)
commitc8384bb04261b9d32fe7402a6068ddaf38913b23
tree3d587883486b42b4b82847b806d0b9cf87748d4e
parentde6042d2fa8afe22b76e3c68fd6e9584c9415a3b
rtc: m41t80: fix m41t80_sqw_round_rate return value

Previously it was returning the best of
32768, 8192, 1024, 64, 2, 0

Now, best of
32768, 8192, 4096, 2048, 1024, 512, 256, 128,
64, 32, 16, 8, 4, 2, 1, 0

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-m41t80.c