diff options
author | Martyn Welch <martyn.welch@collabora.co.uk> | 2017-11-08 15:35:15 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2017-11-20 09:58:31 +0100 |
commit | b418dfe16e62ffb6062e2acc5471821c011bc9cd (patch) | |
tree | 720e0579341bfc63a31843f46b2143e713f2288d /board/ge/bx50v3/vpd_reader.h | |
parent | da5337a61cd41f3bfbaee5b78ba58676bd288073 (diff) |
board: ge: make VPD code common
The VPD data is used on a number of GE products. Move the parsing code to
a common location so that we can share this code.
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/ge/bx50v3/vpd_reader.h')
-rw-r--r-- | board/ge/bx50v3/vpd_reader.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/board/ge/bx50v3/vpd_reader.h b/board/ge/bx50v3/vpd_reader.h deleted file mode 100644 index efa172a915..0000000000 --- a/board/ge/bx50v3/vpd_reader.h +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2016 General Electric Company - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#include "common.h" - -/* - * Read VPD from given data, verify content, and call callback - * for each vital product data block. - * - * Returns Non-zero on error. Negative numbers encode errno. - */ -int vpd_reader( - size_t size, - uint8_t * data, - void * userdata, - int (*fn)( - void * userdata, - uint8_t id, - uint8_t version, - uint8_t type, - size_t size, - uint8_t const * data)); |