git: 2b4333af7bef - stable/14 - siis: Use device_set_desc(f)()

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sun, 09 Jun 2024 14:12:07 UTC
The branch stable/14 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=2b4333af7bef9824e0c08ba683fc08ac08fdc9e8

commit 2b4333af7bef9824e0c08ba683fc08ac08fdc9e8
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-02-04 23:44:11 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-06-09 13:37:52 +0000

    siis: Use device_set_desc(f)()
    
    No functional change intended.
    
    MFC after:      1 week
    
    (cherry picked from commit 17bfbc400f53ff1768c907b35c9cf045d540b8ab)
---
 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 a0e5c1d4738d..1e5fd5648c2d 100644
--- a/sys/dev/siis/siis.c
+++ b/sys/dev/siis/siis.c
@@ -121,15 +121,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);
 		}
 	}
@@ -451,7 +449,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);
 }