FreeBSD/sys/powerpc/mpc85xx/mpc85xx_gpio.c
/* Get a specific pin's name. */
Get a specific pin's name.
Get a specific pin ' s name .
static int
mpc85xx_gpio_pin_getname(device_t dev, uint32_t pin, char *name)
{
	if (!VALID_PIN(pin))
		return (EINVAL);
	snprintf(name, GPIOMAXNAME, "GPIO%d", pin);
	name[GPIOMAXNAME-1] = '\0';
	return (0);
}
static int mpc85xx_gpio_pin_getname ( device_t dev , uint32_t pin , char * name ) { if ( ! VALID_PIN ( pin ) ) return ( EINVAL ) ; snprintf ( name , GPIOMAXNAME , " " , pin ) ; name [ GPIOMAXNAME - 1 ] = ' \0 ' ; return ( 0 ) ; }
Get a specific pin's name.
Get a specific pin ' s name .