Commit 042fa8c7 authored by Alexandre Belloni's avatar Alexandre Belloni

rtc: ds1307: remove regs member

ds1307->regs is never used before being read or initialized locally. There
is no point in keeping a copy in memory.

Also limit the size of the read buffer to what is really used, rename buf
to regs for consistency and use sizeof() where possible.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent ae930c91
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment