Re: [U-Boot] [PATCH v4 09/42] spl: bootcount: Move code out of header file

2019-11-19 Thread Tom Rini
On Thu, Nov 14, 2019 at 12:57:17PM -0700, Simon Glass wrote: > 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

[U-Boot] [PATCH v4 09/42] spl: bootcount: Move code out of header file

2019-11-14 Thread Simon Glass
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