mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
iicbus: Use device_set_descf()
No functional change intended. MFC after: 1 week (cherry picked from commit 48f5a429c95513465327f722a8df52cb48eeb473)
This commit is contained in:
parent
e416932e18
commit
b86ba6cdf1
1 changed files with 2 additions and 5 deletions
|
|
@ -1037,7 +1037,6 @@ iichid_probe(device_t dev)
|
|||
{
|
||||
struct iichid_softc *sc;
|
||||
ACPI_HANDLE handle;
|
||||
char buf[80];
|
||||
uint16_t config_reg;
|
||||
int error, reg;
|
||||
|
||||
|
|
@ -1097,10 +1096,8 @@ iichid_probe(device_t dev)
|
|||
|
||||
sc->probe_result = BUS_PROBE_DEFAULT;
|
||||
done:
|
||||
if (sc->probe_result <= BUS_PROBE_SPECIFIC) {
|
||||
snprintf(buf, sizeof(buf), "%s I2C HID device", sc->hw.name);
|
||||
device_set_desc_copy(dev, buf);
|
||||
}
|
||||
if (sc->probe_result <= BUS_PROBE_SPECIFIC)
|
||||
device_set_descf(dev, "%s I2C HID device", sc->hw.name);
|
||||
return (sc->probe_result);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue