Simon Glass d721001fd6 net: Move the checksum functions to lib/
These functions are used by code outside the network support, so move them
to lib/ to be more accessible.

Without this, the functions are only accessible in SPL/TPL only if
CONFIG_SPL/TPL_NET are defined. Many boards do not enable those option but
still want to do checksums in this format.

Fix up a few code-style nits while we are here.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
2019-12-15 11:43:57 +08:00
..
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-12-09 09:47:43 -06:00
2019-07-18 16:37:13 -05:00
2019-09-04 11:37:19 -05:00
2018-10-10 12:29:02 -05:00
2018-07-02 14:14:20 -05:00