rtc: ds1307: use sizeof
Use sizeof where possible to ensure we don't read/write more than the
allocated buffer.
Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>
Showing
想要评论请 注册 或 登录
Use sizeof where possible to ensure we don't read/write more than the
allocated buffer.
Signed-off-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com>