tegra-fuse.c
/*
 * tegra_fuse_id
 *
 * Returns the fuse ID value for a named fuse.
 */
tegra_fuse_id
Returns the fuse ID value for a named fuse.
tegra_fuse_id Returns the fuse ID value for a named fuse .
int
tegra_fuse_id (tegra_fusectx_t ctx, const char *name)
{
	int i;
	if (ctx == NULL) {
		errno = EINVAL;
		return -1;
	}
	for (i = 0; i < fuseinfo[ctx->soc].fusecount; i++) {
		if (strcmp(name, fuseinfo[ctx->soc].fuses[i].name) == 0)
			return i;
	}
	errno = EINVAL;
	return -1;
}
int tegra_fuse_id ( tegra_fusectx_t ctx , const char * name ) { int i ; if ( ctx == NULL ) { errno = EINVAL ; return -1 ; } for ( i = 0 ; i < fuseinfo [ ctx -> soc ] . fusecount ; i ++ ) { if ( strcmp ( name , fuseinfo [ ctx -> soc ] . fuses [ i ] . name ) == 0 ) return i ; } errno = EINVAL ; return -1 ; }
tegra_fuse_id
 Returns the fuse ID value for a named fuse.
tegra_fuse_id Returns the fuse ID value for a named fuse .