Skip to content

Commit

Permalink
rtc: ds1307: remove regs member
Browse files Browse the repository at this point in the history
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: Alexandre Belloni <alexandre.belloni@free-electrons.com>
  • Loading branch information
Alexandre Belloni committed Sep 5, 2017
1 parent ae930c9 commit 042fa8c
Showing 1 changed file with 107 additions and 100 deletions.
Loading

0 comments on commit 042fa8c

Please sign in to comment.