From patchwork Sat Mar 9 00:56:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 10845667 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5666E1390 for ; Sat, 9 Mar 2019 00:56:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 437432FB6B for ; Sat, 9 Mar 2019 00:56:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 377F43030E; Sat, 9 Mar 2019 00:56:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9F8EF2FB6B for ; Sat, 9 Mar 2019 00:56:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726363AbfCIA4U (ORCPT ); Fri, 8 Mar 2019 19:56:20 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:55768 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726307AbfCIA4U (ORCPT ); Fri, 8 Mar 2019 19:56:20 -0500 Received: by mail-wm1-f65.google.com with SMTP id q187so14194538wme.5; Fri, 08 Mar 2019 16:56:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tG1/W45bclxbHIJ/XTTD3wUwj/6fNCMlABDLg542AJ8=; b=WKZh571eKS0sL4qi7PgsDLwTnVcxsMDpnDSASGZk+kdulgPMcPYcc3KHXMzI5dQLvc uiG5B3jK9B12mTO5FZUKxmKo6H/G7WJ3T7gL9oS9fjGUpkrFN4YbW2G34QYZesLpt/se EMZ6C3m0vMaJSu7TBcwFYDzwoZUfvjNCGdGxmvpEvI9tGtQ16bofdVbwu8WW85dvN6EM kW2tn+f+w6HgRz20I2ES9CNdXOYYCMISr1+xPSry9IUJcqjgc4updzzwZgiqY72o5007 kdhvkdap9wvW3IyVe7gFhwVe9Vk0GQZvpRamooUdHpGOoFUruyTzO6GiRhVUxhbCxxzz /+Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=tG1/W45bclxbHIJ/XTTD3wUwj/6fNCMlABDLg542AJ8=; b=QJdQDex+8dYT6fnqk/NYJoR7jWfDV6M2KuufahmgJCK+WiN9B0AkXJp5Gd/cQjKGX8 hpGdKoyV2KhIDFA0s7Q1W8ZRY/K3w36OLr8PVNTBif2mC4VxhsCsc6Q8w8m6StjKhdb9 afZRXrb/hqIJV1uMwaqMhhP7CHAn2WoIECJoEzTSMGj7ANFPrUIP9UCl3gcc82CMlFAL dMYZS5CvFHlKt59UT9EHkhaAh2R/F31Nx4Qq3oq5W2gPnL5e/Dr9gYNJ7Wf52ZCBLFfO +jft4XWOsf2d2w7tiEeVz+mQ5by/isQr6i2BPMTQl6K31V583qX21gY0U6duLOc78VfM rvqQ== X-Gm-Message-State: APjAAAViC7yIFjgpsIhqYWkp2O1MYKv3kX/vv4FNWPwtgycZLp7+UVWE OfpHeIbGdmji/w6uZf3JjK+Vlp+s X-Google-Smtp-Source: APXvYqzmxK8Ho2eIso30bNohfI9EKH1LsnSOaTe3rzdXwUy1WQRVaJQUdmumsEQHqNYEXmwLlRWy/A== X-Received: by 2002:a1c:4406:: with SMTP id r6mr10568868wma.114.1552092977678; Fri, 08 Mar 2019 16:56:17 -0800 (PST) Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz. [86.49.110.70]) by smtp.gmail.com with ESMTPSA id e23sm8340623wme.15.2019.03.08.16.56.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Mar 2019 16:56:16 -0800 (PST) From: marek.vasut@gmail.com To: linux-pci@vger.kernel.org Cc: Marek Vasut , Geert Uytterhoeven , Phil Edworthy , Simon Horman , Wolfram Sang , linux-renesas-soc@vger.kernel.org Subject: [PATCH 1/2] PCI: rcar: Clean up remaining macros defining bits Date: Sat, 9 Mar 2019 01:56:12 +0100 Message-Id: <20190309005613.1493-1-marek.vasut@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Marek Vasut Replace macros using constants with BIT()s instead, no functional change. Signed-off-by: Marek Vasut Cc: Geert Uytterhoeven Cc: Phil Edworthy Cc: Simon Horman Cc: Wolfram Sang Cc: linux-renesas-soc@vger.kernel.org To: linux-pci@vger.kernel.org Reviewed-by: Niklas Söderlund Reviewed-by: Geert Uytterhoeven --- drivers/pci/controller/pcie-rcar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/controller/pcie-rcar.c b/drivers/pci/controller/pcie-rcar.c index c8febb009454..5b8736f0cd6b 100644 --- a/drivers/pci/controller/pcie-rcar.c +++ b/drivers/pci/controller/pcie-rcar.c @@ -46,14 +46,14 @@ /* Transfer control */ #define PCIETCTLR 0x02000 -#define CFINIT 1 +#define CFINIT BIT(0) #define PCIETSTR 0x02004 -#define DATA_LINK_ACTIVE 1 +#define DATA_LINK_ACTIVE BIT(0) #define PCIEERRFR 0x02020 #define UNSUPPORTED_REQUEST BIT(4) #define PCIEMSIFR 0x02044 #define PCIEMSIALR 0x02048 -#define MSIFE 1 +#define MSIFE BIT(0) #define PCIEMSIAUR 0x0204c #define PCIEMSIIER 0x02050