git: 17bfbc400f53 - main - siis: Use device_set_desc(f)()

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sun, 02 Jun 2024 23:47:18 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=17bfbc400f53ff1768c907b35c9cf045d540b8ab

commit 17bfbc400f53ff1768c907b35c9cf045d540b8ab
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-02-04 23:44:11 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-06-02 23:38:41 +0000

    siis: Use device_set_desc(f)()
    
    No functional change intended.
    
    MFC after:      1 week
---
 sys/dev/siis/siis.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sys/dev/siis/siis.c b/sys/dev/siis/siis.c
index 54ef7ff440aa..ad370c99f85e 100644
--- a/sys/dev/siis/siis.c
+++ b/sys/dev/siis/siis.c
@@ -120,15 +120,13 @@ static struct {
 static int
 siis_probe(device_t dev)
 {
-	char buf[64];
 	int i;
 	uint32_t devid = pci_get_devid(dev);
 
 	for (i = 0; siis_ids[i].id != 0; i++) {
 		if (siis_ids[i].id == devid) {
-			snprintf(buf, sizeof(buf), "%s SATA controller",
+			device_set_descf(dev, "%s SATA controller",
 			    siis_ids[i].name);
-			device_set_desc_copy(dev, buf);
 			return (BUS_PROBE_DEFAULT);
 		}
 	}
@@ -449,7 +447,7 @@ static int
 siis_ch_probe(device_t dev)
 {
 
-	device_set_desc_copy(dev, "SIIS channel");
+	device_set_desc(dev, "SIIS channel");
 	return (BUS_PROBE_DEFAULT);
 }