Date: Thu, 29 Jun 2006 16:53:55 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 100295 for review Message-ID: <200606291653.k5TGrtsU087908@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=100295 Change 100295 by imp@imp_lighthouse on 2006/06/29 16:53:11 Better names. Affected files ... .. //depot/projects/arm/src/sys/arm/at91/at91_pio.c#12 edit Differences ... ==== //depot/projects/arm/src/sys/arm/at91/at91_pio.c#12 (text+ko) ==== @@ -105,7 +105,26 @@ static int at91_pio_probe(device_t dev) { - device_set_desc(dev, "PIO"); + const char *name; + + switch (device_get_unit(dev)) { + case 0: + name = "PIOA"; + break; + case 1: + name = "PIOB"; + break; + case 2: + name = "PIOC"; + break; + case 3: + name = "PIOD"; + break; + default: + name = "PIO"; + break; + } + device_set_desc(dev, name); return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606291653.k5TGrtsU087908>