#include <bcm47xx.h>
#include <nvram.h>
Go to the source code of this file.
#define NVRAM_READ_VAL |
( |
|
type | ) |
|
Value:static void nvram_read_ ##
type (
const char *
prefix, \
const char *postfix,
const char *
name, \
{ \
\
create_key(
prefix, postfix,
name, key,
sizeof(key)); \
\
if (err < 0) \
return; \
err = kstrto ##
type (buf, 0, &var); \
if (err) { \
pr_warn("can not parse nvram name %s with value %s" \
" got %i", key, buf, err); \
return; \
} \
if (allset && var == allset) \
return; \
}
Definition at line 45 of file sprom.c.