]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: bootcount: Move code out of header file
authorSimon Glass <sjg@chromium.org>
Thu, 14 Nov 2019 19:57:17 +0000 (12:57 -0700)
committerTom Rini <trini@konsulko.com>
Mon, 2 Dec 2019 23:23:08 +0000 (18:23 -0500)
commitc66044415989027c33876ff84491e148062dbf5c
tree6e6be967379258f6439f224f7df1ec8d916e328a
parent3db7110857524cf1b7d0a374c1ebcde8a2680de0
spl: bootcount: Move code out of header file

It is not good practice to write code in a header file. If it is included
multiple times then the code can cause duplicate functions.

Move the bootcount_store() and bootcount_load() functions into SPL.

Note: bootcount is a bit strange in that it uses driver model but does not
define proper drivers. This should be fixed.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl.c
include/bootcount.h