From nobody Sun Jun 02 23:47:10 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VstnC1qqJz5LVPm; Sun, 02 Jun 2024 23:47:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VstnC11mLz49rv; Sun, 2 Jun 2024 23:47:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717372031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jzs4It4qI1+alyLTUXVADWrJAlfae+hiTEvdZYi+u/s=; b=HAHnqpQhPERtg8In3x//8/f7QAFbxSZYRfJl1YuGfDCoU6egBoy8tfS21bEkLBJbpjC2uU iJCaSYpTkXcgYcmorRA3+JhzJU3xpRic42lQnRJyYAa5Yql+iawsCZveT+8dF7AIifCxst /BsE7nrCW6GfdCy/HniOX8QQCNgSR/ffTexXP9wFeRwwUp4uCbbHDt4FK4JSp1Bv6KFPfB V/xJCy5sXoRR7Lq5vcoVDr2UbJkX2ulepodpeSlvSa3n91E9lM42Eb4+AFqfDPfSXcy0KT dPLkj0djMX8niAQyaY2SwxcO9ie/+yIRZLIqhkfuyI47QXpOx9NskNRkBfNR7A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1717372031; a=rsa-sha256; cv=none; b=Kbcr1nQwHjrwrKxEhimaf3ysQVJGbibO9p7ys77uDbNaYAnsDJf9MI07X3kgtm0+hBSjXv UNBAXxhRtZMgUHZV/tZ4Aj9uhPQjAYnFubPtgRfkBawKf7Ly9HYc5gxP+rvqvi22Ya9TKR yZcDfg3fbjzFVoqbgrMABeC5dO5WrqDUYU+Jk+b1HS3vzzBDdzaUPPaM1y5Q4/CkEsEjtY TbUBkM9E5j3jafskh3HDJTSnL9mIDW0PTTCZb8xySkdh56JB7GfZ437LB5ExvCKyBd3UdI he+m5CaPpzAX+j3TMdbV8JfLHdjOurZ1DQuvDrhwgaT4UGFyaNlGNNhxj69Kew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1717372031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=jzs4It4qI1+alyLTUXVADWrJAlfae+hiTEvdZYi+u/s=; b=lDFSNaDN3q75MUBRs0u/2fRxQj1RZHx+3oGVQcWRQhClylPB6yO2eDU1NiX35BERYWzdPZ cLZyGyqDhMCcJ2yL8OEZ/kYmlepkLNQW/x8HIJ9K7bbP3K8QkgvGRpOacvtgtgHyLcWGo7 RGgxzu6dnVcrK9TojQLSDjlI4aIGRxP6JUlhcvMTocTScD00Ni/2c4pBGyflLgzObnPglL hnVAVODTKN9rMlxF7KaFVaAQSlqi6edUmgN/W4zdUgfn5Zz6wEQ4sfCpUNZ3wLxeXK6OFx HPF2O7yL9I6cNby8jXC4+oNozgY6IG8eVpt5lpGpoSvaXu1ppY+bYjbJ3Vjk1A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VstnC0dkCz1Bj6; Sun, 2 Jun 2024 23:47:11 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 452NlAZE056398; Sun, 2 Jun 2024 23:47:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 452NlAgX056395; Sun, 2 Jun 2024 23:47:10 GMT (envelope-from git) Date: Sun, 2 Jun 2024 23:47:10 GMT Message-Id: <202406022347.452NlAgX056395@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mark Johnston Subject: git: 459dc61c8b05 - main - arm: Convert drivers to use device_set_desc(f)() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: markj X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 459dc61c8b05dedb61a2774348ffda7d7f8ea7c6 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=459dc61c8b05dedb61a2774348ffda7d7f8ea7c6 commit 459dc61c8b05dedb61a2774348ffda7d7f8ea7c6 Author: Mark Johnston AuthorDate: 2024-02-04 23:23:00 +0000 Commit: Mark Johnston CommitDate: 2024-06-02 23:38:40 +0000 arm: Convert drivers to use device_set_desc(f)() No functional change intended. MFC after: 1 week --- sys/arm/nvidia/tegra_ahci.c | 2 +- sys/arm/ti/am335x/am335x_dmtimer.c | 4 +--- sys/arm/ti/am335x/am335x_dmtpps.c | 5 +---- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/sys/arm/nvidia/tegra_ahci.c b/sys/arm/nvidia/tegra_ahci.c index c5d4dbff977c..30e28dd33235 100644 --- a/sys/arm/nvidia/tegra_ahci.c +++ b/sys/arm/nvidia/tegra_ahci.c @@ -651,7 +651,7 @@ tegra_ahci_probe(device_t dev) if (!ofw_bus_search_compatible(dev, compat_data)->ocd_data) return (ENXIO); - device_set_desc_copy(dev, "AHCI SATA controller"); + device_set_desc(dev, "AHCI SATA controller"); return (BUS_PROBE_DEFAULT); } diff --git a/sys/arm/ti/am335x/am335x_dmtimer.c b/sys/arm/ti/am335x/am335x_dmtimer.c index a4ca188bd83b..fde5f04875cc 100644 --- a/sys/arm/ti/am335x/am335x_dmtimer.c +++ b/sys/arm/ti/am335x/am335x_dmtimer.c @@ -248,7 +248,6 @@ am335x_dmtimer_tc_init(struct am335x_dmtimer_softc *sc) static int am335x_dmtimer_probe(device_t dev) { - char strbuf[32]; int tmr_num; uint64_t rev_address; @@ -276,8 +275,7 @@ am335x_dmtimer_probe(device_t dev) return (ENXIO); } - snprintf(strbuf, sizeof(strbuf), "AM335x DMTimer%d", tmr_num); - device_set_desc_copy(dev, strbuf); + device_set_descf("AM335x DMTimer%d", tmr_num); return(BUS_PROBE_DEFAULT); } diff --git a/sys/arm/ti/am335x/am335x_dmtpps.c b/sys/arm/ti/am335x/am335x_dmtpps.c index f3e4386e4837..5a19d3ad0dc3 100644 --- a/sys/arm/ti/am335x/am335x_dmtpps.c +++ b/sys/arm/ti/am335x/am335x_dmtpps.c @@ -383,7 +383,6 @@ static struct cdevsw dmtpps_cdevsw = { static int dmtpps_probe(device_t dev) { - char strbuf[64]; int tmr_num; uint64_t rev_address; @@ -435,9 +434,7 @@ dmtpps_probe(device_t dev) if (dmtpps_tmr_num != tmr_num) return (ENXIO); - snprintf(strbuf, sizeof(strbuf), "AM335x PPS-Capture DMTimer%d", - tmr_num); - device_set_desc_copy(dev, strbuf); + device_set_descf("AM335x PPS-Capture DMTimer%d", tmr_num); return(BUS_PROBE_DEFAULT); }