rtc: ds1307: use sizeof
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 4 Sep 2017 20:46:03 +0000 (22:46 +0200)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 5 Sep 2017 07:55:03 +0000 (09:55 +0200)
commitf2b4801201a46eaa9a00a39a1e2d5aa8c9864991
treecd648ab673cc701b165ebb0f1f4729d5d7993058
parent042fa8c7c04dd43b21be3ec5104681574a4f8f8c
rtc: ds1307: use sizeof

Use sizeof where possible to ensure we don't read/write more than the
allocated buffer.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ds1307.c