From nobody Wed Nov 16 10:58:44 2022 X-Original-To: dev-commits-src-main@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 4NC0Qr4J04z4hZjb; Wed, 16 Nov 2022 10:58:44 +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 4NC0Qr3W41z44mG; Wed, 16 Nov 2022 10:58:44 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668596324; 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=OOlH3zz/FMt5O/ZTbuFOfuuq89Xa8mcomqcce4FrNz0=; b=E6CnVSF8K0Pbz094uXOTc2OULRmHGkpUrjORP00xrAzWYnd+4KIUPg/jMbgUlBSodbL+k5 lGGcJG95ASHg8muneS1AwaPlONSpT8R0TEYdpI4/yCgm9+ykJ14mMaNPYnL4XBtKpi2lnx rQv02TNhzNzc8+39uR3L8IXxryvNyup+RTJpSkqSCwmBb+enBSo7TAJ1kFqfTvOt5p1ljV Ja6obm1Fvl3Nxb4CnnZ4vlte4lMDba92ZWA0QOMexJ40L6aVSfwdHlY6u3lzi2o/S3oDRb FqsVadpiUH/Py1ldVcj6jkIyu6G/nD+8iApu3X6UnxHr6P1rRKKA2KZeLqRPdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668596324; 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=OOlH3zz/FMt5O/ZTbuFOfuuq89Xa8mcomqcce4FrNz0=; b=qwTJxl0xVKcNCe9jqX30ukMJOC9bIy3y5eR2cnUXHIBFFMo6kflu4wb5YymOItmCAxAXkh +cWppdjILd+lLY2D6ZAbQASSkgzbdBCFhCzaEP+TBmUeLZ6Dt8TnY/ZMC5vUBGUI0dJAXd ddLv6ce8DBj9P5olmTxC/gSOUvmiGkxkRyTtnPmGWPEPsmJS1YThKs1uasYbb0+l1Il5Ra UapBJsk8/PWTujOllLr2pv0PiSImiJZXPjGCUrVL9o9LfFjkmV8J41qY3C9TOJrzMNXOH1 xjlSmj9aV77nuGCnPZ3tZOSJzpx+iStudEJKsQenalr73Va8tWYuwMqtmczUpw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668596324; a=rsa-sha256; cv=none; b=VvO+Y66Oj9zW7iW1nKKfunIpUazdxkWfuXy3HM6WwE5tBoTxw/FCWWLgWBUGxm3PeqVmSG MuK9BmK7H9ByI8BisIzt5BH/qkeljAvBluct43WdT6sTkzsFoL/XhdJWaShN7tnE3TQU68 IqdY5C8QfKx1zxSokAQMMAmjW8EKz7Z740vhT2mg1a4EYsyrY/n5f0bjrFzS83JSzFoN7u 4mFboA1Wy0w+2NhO4uN/Ahu/sNR1rFCtUZT8Uq/fGo5288UTOsXeU5p0TcLa1m6DNB+733 /tYkbUYSoLWbU/coKTX9SwLRot0FabGk1cwwBKGadEd0Dk/CEptkIGv0j9hULA== 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 4NC0Qr2bybz10DC; Wed, 16 Nov 2022 10:58:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AGAwiid094801; Wed, 16 Nov 2022 10:58:44 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AGAwiJ7094800; Wed, 16 Nov 2022 10:58:44 GMT (envelope-from git) Date: Wed, 16 Nov 2022 10:58:44 GMT Message-Id: <202211161058.2AGAwiJ7094800@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: 0860c27fe8cf - main - usb/dwc3: Use more () for macros variables List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0860c27fe8cf144cb10f8916a0b8fe5ad57a3d9e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=0860c27fe8cf144cb10f8916a0b8fe5ad57a3d9e commit 0860c27fe8cf144cb10f8916a0b8fe5ad57a3d9e Author: Emmanuel Vadot AuthorDate: 2022-11-16 10:57:56 +0000 Commit: Emmanuel Vadot CommitDate: 2022-11-16 10:58:32 +0000 usb/dwc3: Use more () for macros variables Suggested by: andrew Sponsored by: Beckhoff Automation GmbH & Co. KG --- sys/dev/usb/controller/dwc3.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/usb/controller/dwc3.h b/sys/dev/usb/controller/dwc3.h index fd61d1129df3..72420890d28c 100644 --- a/sys/dev/usb/controller/dwc3.h +++ b/sys/dev/usb/controller/dwc3.h @@ -99,7 +99,7 @@ #define DWC3_GUSB2PHYCFG0_USBTRDTIM_8BITS 9 #define DWC3_GUSB2PHYCFG0_USBTRDTIM_16BITS 5 #define DWC3_GUSB2PHYCFG0_ENBLSLPM (1 << 8) -#define DWC3_GUSB2PHYCFG0_PHYSEL(x) ((x >> 7) & 0x1) /* 0 = USB2.0, 1 = USB1.1 */ +#define DWC3_GUSB2PHYCFG0_PHYSEL(x) (((x) >> 7) & 0x1) /* 0 = USB2.0, 1 = USB1.1 */ #define DWC3_GUSB2PHYCFG0_SUSPENDUSB20 (1 << 6) #define DWC3_GUSB2PHYCFG0_ULPI_UTMI_SEL (1 << 4) #define DWC3_GUSB2PHYCFG0_PHYIF (1 << 3) @@ -110,7 +110,7 @@ #define DWC3_GUSB3PIPECTL0_DELAYP1TRANS (1 << 18) #define DWC3_GUSB3PIPECTL0_SUSPENDUSB3 (1 << 17) -#define DWC3_HWPARAMS3_SSPHY(x) (x & 0x3) +#define DWC3_HWPARAMS3_SSPHY(x) ((x) & 0x3) #define DWC3_HWPARAMS3_SSPHY_DISABLE 0 #define DWC3_HWPARAMS3_SSPHY_GEN1 1 #define DWC3_HWPARAMS3_SSPHY_GEN2 2