Skip to content
Snippets Groups Projects
Commit 7cde397b authored by Gerald Van Baren's avatar Gerald Van Baren
Browse files

fdt: Export fdtdec_lookup() and fix the name


The name of this function is not consistent, so fix it, and export
the function for external use.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 5921f6a2
No related branches found
No related tags found
No related merge requests found
...@@ -109,6 +109,19 @@ struct fdt_gpio_state { ...@@ -109,6 +109,19 @@ struct fdt_gpio_state {
int fdtdec_next_alias(const void *blob, const char *name, int fdtdec_next_alias(const void *blob, const char *name,
enum fdt_compat_id id, int *upto); enum fdt_compat_id id, int *upto);
/**
* Find the compatible ID for a given node.
*
* Generally each node has at least one compatible string attached to it.
* This function looks through our list of known compatible strings and
* returns the corresponding ID which matches the compatible string.
*
* @param blob FDT blob to use
* @param node Node containing compatible string to find
* @return compatible ID, or COMPAT_UNKNOWN if we cannot find a match
*/
enum fdt_compat_id fdtdec_lookup(const void *blob, int node);
/** /**
* Find the next compatible node for a peripheral. * Find the next compatible node for a peripheral.
* *
......
...@@ -128,7 +128,7 @@ int fdtdec_get_is_enabled(const void *blob, int node) ...@@ -128,7 +128,7 @@ int fdtdec_get_is_enabled(const void *blob, int node)
return 1; return 1;
} }
enum fdt_compat_id fd_dec_lookup(const void *blob, int node) enum fdt_compat_id fdtdec_lookup(const void *blob, int node)
{ {
enum fdt_compat_id id; enum fdt_compat_id id;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment