mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
uart: Use device_set_descf()
No functional change intended. MFC after: 1 week
This commit is contained in:
parent
a3b460d499
commit
66d2d42a1f
|
@ -412,7 +412,6 @@ quicc_bus_param(struct uart_softc *sc, int baudrate, int databits,
|
||||||
static int
|
static int
|
||||||
quicc_bus_probe(struct uart_softc *sc)
|
quicc_bus_probe(struct uart_softc *sc)
|
||||||
{
|
{
|
||||||
char buf[80];
|
|
||||||
int error;
|
int error;
|
||||||
|
|
||||||
error = quicc_probe(&sc->sc_bas);
|
error = quicc_probe(&sc->sc_bas);
|
||||||
|
@ -422,8 +421,7 @@ quicc_bus_probe(struct uart_softc *sc)
|
||||||
sc->sc_rxfifosz = 1;
|
sc->sc_rxfifosz = 1;
|
||||||
sc->sc_txfifosz = 1;
|
sc->sc_txfifosz = 1;
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "quicc, channel %d", sc->sc_bas.chan);
|
device_set_descf(sc->sc_dev, "quicc, channel %d", sc->sc_bas.chan);
|
||||||
device_set_desc_copy(sc->sc_dev, buf);
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -509,7 +509,6 @@ z8530_bus_param(struct uart_softc *sc, int baudrate, int databits,
|
||||||
static int
|
static int
|
||||||
z8530_bus_probe(struct uart_softc *sc)
|
z8530_bus_probe(struct uart_softc *sc)
|
||||||
{
|
{
|
||||||
char buf[80];
|
|
||||||
int error;
|
int error;
|
||||||
char ch;
|
char ch;
|
||||||
|
|
||||||
|
@ -522,8 +521,7 @@ z8530_bus_probe(struct uart_softc *sc)
|
||||||
|
|
||||||
ch = sc->sc_bas.chan - 1 + 'A';
|
ch = sc->sc_bas.chan - 1 + 'A';
|
||||||
|
|
||||||
snprintf(buf, sizeof(buf), "z8530, channel %c", ch);
|
device_set_descf(sc->sc_dev, "z8530, channel %c", ch);
|
||||||
device_set_desc_copy(sc->sc_dev, buf);
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue