commit | f702699c67d315e4a232c64801b2de9af87fd9f4 | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <bgolaszewski@baylibre.com> | Mon Sep 14 17:45:54 2020 +0200 |
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | Tue Sep 15 10:50:37 2020 +0200 |
tree | 514876f065975bb6710ccc380ec739abf29253f5 | |
parent | 13952c9e35384fd7f63a5ce8261108695491bb56 [diff] |
rtc: rx8010: don't use magic values for time buffer length The time buffer len is used directly in this driver. For readability it's better to define it as the difference between the date register offsets and use sizeof() whenever referencing it. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20200914154601.32245-8-brgl@bgdev.pl