commit | f2b4801201a46eaa9a00a39a1e2d5aa8c9864991 | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Mon Sep 04 22:46:03 2017 +0200 |
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | Tue Sep 05 09:55:03 2017 +0200 |
tree | cd648ab673cc701b165ebb0f1f4729d5d7993058 | |
parent | 042fa8c7c04dd43b21be3ec5104681574a4f8f8c [diff] |
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>