FreeBSD/sys/arm/ti/ti_pinmux.c
/**
 *	ti_pinmux_padconf_from_name - searches the list of pads and returns entry
 *	                             with matching ball name.
 *	@ballname: the name of the ball
 *
 *	RETURNS:
 *	A pointer to the matching padconf or NULL if the ball wasn't found.
 */
searches the list of pads and returns entry
with matching ball name.
@ballname: the name of the ball

A pointer to the matching padconf or NULL if the ball wasn't found.
searches the list of pads and returns entry with matching ball name . @ballname : the name of the ball A pointer to the matching padconf or NULL if the ball wasn ' t found .
static const struct ti_pinmux_padconf*
ti_pinmux_padconf_from_name(const char *ballname)
{
	const struct ti_pinmux_padconf *padconf;
	padconf = ti_pinmux_dev.padconf;
	while (padconf->ballname != NULL) {
		if (strcmp(ballname, padconf->ballname) == 0)
			return(padconf);
		padconf++;
	}
	return (NULL);
}
static const struct ti_pinmux_padconf * ti_pinmux_padconf_from_name ( const char * ballname ) { const struct ti_pinmux_padconf * padconf ; padconf = ti_pinmux_dev . padconf ; while ( padconf -> ballname != NULL ) { if ( strcmp ( ballname , padconf -> ballname ) == 0 ) return ( padconf ) ; padconf ++ ; } return ( NULL ) ; }
ti_pinmux_padconf_from_name - searches the list of pads and returns entry
                                   with matching ball name.
ti_pinmux_padconf_from_name - searches the list of pads and returns entry with matching ball name .