Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 042fa8c7 authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment