From nobody Sun Jun 16 20:37:52 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 4W2PwJ4Z2Gz5PRTZ; Sun, 16 Jun 2024 20:37:52 +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 4W2PwJ2fq3z3x1L; Sun, 16 Jun 2024 20:37:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718570272; 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=Z7BLuOMFEmV5ihoDl5AqKoBtp2tGXOprYQRe4QsfqcA=; b=nVNXCRGq4Jeeys9fK/ZvXcFnayWMMlEfWEMtnguTEUYyVQlFDgiGWZpqmBGaLh9MOpdwl7 60W0xS6DhPxq7Avje2WYnJln3QGsrCAwyNO0hSsoTZsivLWuSbOer6zzLg0mjwf8q+g9Dt 36zcpxXl9rcKtEbK98HgYnwbkk/mqYJrxr/00S4WUKPy7Iq4d+Uwfd9uEFPtwwRKcHqy82 0IaJGZAxkGRqSFFYQXShsxL3/OgEkrjoTRbZcL75rp1Uzy5MGgtaltErEUXokb7JzJbE1z Zk1IDy/v9k0RjlLLKTq62PoAPQnFjkFIwYTtZuLrcXEiivkwU0RWqlKffhwVdw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718570272; a=rsa-sha256; cv=none; b=wd9h+O/uc9XKTECKQbGm86s1IJNgEohFRo972utvE1oGZDBY9JZkyEyPPBvq196sLSUsOi Qk56SjYox4bXhSJpXdHW5yGmiygvZRZjEGcLQXND7J89HIVAMMgjKyXBNdoRfv6xVa3n2E d0ePWFxpSib2ZpDdltegtHKzw9wKGOsGUaV0Jr+AA3m8U3qyU3gMLe/V/KsODZtRsaol4q 5xA3sYZhkrLjLQZr0snscfw1XrOtyvTfaEU3ne56oNBmYlCzonJP+5Dx9zHQ5tOFw2et/0 lk7Qo1MK5bNvCxBeC9lNITc5IuL7dWchJGSEGLW/GXWZoOlqDhfcMiiLz3wpfg== 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=1718570272; 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=Z7BLuOMFEmV5ihoDl5AqKoBtp2tGXOprYQRe4QsfqcA=; b=Aw+b3A1mBTBjwz5eso90ygj34XZAtdfQhjMOQl75xQ4jrm/qxfgy9gKIy/QG5xX1nFF6ID ehCVQXZLRjlAtVm8L1ZA+iOEnZI3KxEkHtAdbGFkaKdOlNqWm86vg56MZ9l2Po24xNkulD JtoyETv9QrgvVhbavM2bylsQ8DVBtG6gMLaVKFC7oEVEXUJVOsYQ3GZBS+fsL/ba/0ff0g XOHr2MDuLSFxXBhsGsa8VBowEU0dhEb4uKrwt9JjCwAVQ/YlRE3vdRN4IMCdj0EpWPsdeI GTO3fhOP3WeZpyX7KTdQiJmDT8klqnTbqzwu3rLlUzYyGq/NOZ9pNSbXgH2jCQ== 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 4W2PwJ2FZ0z12km; Sun, 16 Jun 2024 20:37:52 +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 45GKbqAE079335; Sun, 16 Jun 2024 20:37:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45GKbqVl079332; Sun, 16 Jun 2024 20:37:52 GMT (envelope-from git) Date: Sun, 16 Jun 2024 20:37:52 GMT Message-Id: <202406162037.45GKbqVl079332@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: 48f5a429c955 - main - iicbus: Use device_set_descf() 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: 48f5a429c95513465327f722a8df52cb48eeb473 Auto-Submitted: auto-generated The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=48f5a429c95513465327f722a8df52cb48eeb473 commit 48f5a429c95513465327f722a8df52cb48eeb473 Author: Mark Johnston AuthorDate: 2024-06-05 14:19:06 +0000 Commit: Mark Johnston CommitDate: 2024-06-16 20:37:26 +0000 iicbus: Use device_set_descf() No functional change intended. MFC after: 1 week --- sys/dev/iicbus/iichid.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sys/dev/iicbus/iichid.c b/sys/dev/iicbus/iichid.c index ff443afbf30a..222f20842a04 100644 --- a/sys/dev/iicbus/iichid.c +++ b/sys/dev/iicbus/iichid.c @@ -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); }