Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp688065img; Mon, 18 Mar 2019 12:00:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoSapMR1aG5x/fH2zJAE/rZShNrjATe4as1jHJDoVxOI62CZPth4oL1xfDXc6MJ7YPljqE X-Received: by 2002:a63:d04f:: with SMTP id s15mr19116348pgi.80.1552935602953; Mon, 18 Mar 2019 12:00:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552935602; cv=none; d=google.com; s=arc-20160816; b=jOntXetnwjbjGNzeCMm6TJ/vrxw6lJLN9C6vw7IDuH6+/xKTmgQlVZHAhCC5ZPMVua 8k17bRhUq2yDSZIHfcKh5pnkm33I1D2KrGCzUn+Z86VWaQOLXNsGMa42l6gsijSkEyX6 LWRkqpW+7R+kplAO9Hzh5mqF7OKG9Ha5E4QKWG4TqWl26igpNV8aUz640mlFQia0FPOW Us9gvKZqtr0YBUcPy737hQRJZwbVP9i+bHlew73dFpl8M2BJmdOdcyN/svljWlXhEz0J Ew/mWyXVMyaVyN8DgE5eiEsee2z4RbUWDN8j5glJKiXY0/rjXjdsC0jqD1aDuyel9uAv +NwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=8Vs9SnGE5lXkHgcMHiWF2IZO6U3rU+rpYz5WSEKAHIs=; b=RD0SIcSgq+WO0nmjOPbfJNBO/vAXz9IgJbqeXb9A6WAbLwsY35y8KDwnZ0+1RbtFSW LwE49/CHpDCyaOvt/Xv5HWiwzHOMWrS4wseFr5epaROV9od46F1mujb2JMSxwRhHVc1z m8d6GvAtvt+wdYElSEs2i8lS4FQJfPDw18RWCGLesmcALWAz/LYzV2K1ZPHGG+qIqIa6 VRo6FVx5+PV5qUp8QvyKpTNYnykdG7zCDdTIWJlCU0v7Wx9xXerUai4clL4/b34Zoj48 UNOh0//IaWIbQOFuXie843J//T62KoaIAGhCBH7rVZFm+CdwK3oKiwu0RrWa0169jApS aiqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OnXEn7U8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 31si10153473plj.345.2019.03.18.11.59.45; Mon, 18 Mar 2019 12:00:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OnXEn7U8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727336AbfCRS64 (ORCPT + 99 others); Mon, 18 Mar 2019 14:58:56 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53528 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbfCRS64 (ORCPT ); Mon, 18 Mar 2019 14:58:56 -0400 Received: by mail-wm1-f68.google.com with SMTP id e74so14134301wmg.3 for ; Mon, 18 Mar 2019 11:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:reply-to:mime-version :content-transfer-encoding; bh=8Vs9SnGE5lXkHgcMHiWF2IZO6U3rU+rpYz5WSEKAHIs=; b=OnXEn7U8h6fR4JC9Y9ddjBmezd+RWijbI2WMZw+xgwsgW/bLvt68c6UsK5PUzyHOHx aRK8xqKk+K4m6CFjLq0Fdp+0sVsuj0tJy7udjclosHEmKNQMrnd8R9e3ieS+IAjZgfar 2i+01pgwd9YjL4f4G2/g6Zw/koXLovgmD7hj9jqNbdNiri7y23D/l4XdIMFg00iRYlO6 h+tscWkyGq2wywvY1DrvXY2BXj94/26cYzyvrqBbKUwyja9H85HNclNPe9EU+MKxniB9 LUwZWCWSbF6V2/zhSKjCyEnb2ZH0NYZuJRuIelB7VcWrgr27O2GaLDEWRELD461WWTgl wyjA== 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:reply-to :mime-version:content-transfer-encoding; bh=8Vs9SnGE5lXkHgcMHiWF2IZO6U3rU+rpYz5WSEKAHIs=; b=VRciCdjd2PVJGsJoNBiLBgw7V7lILSXOXfRQlDzEM6r2cbdEoY5R9tysyRGE5GIHej b5UOCDxuO63c2ITKYxD6c4snwTppnAdOB0p6XMJpO1AkqmvxgPngkxLCwQU398WtZklT ZprFk1c9VNe8EcKWAZEh4iCsCYtMWwhMPdIc1714FPzvD6aWwiiCZx2ALjFcMzUysn3N VdVIMwsKnnlk9E6iyIZ9GUHFZno7NrPKU0sroVDcKgWH4mt+D688RODl+QVyKTiegy8s EBwMesVNnWDVKFe4GMPFNn9/pxH0YspKNPMHbpkYzf+OfXUfh+HwZx0QejtIS/WTSPWE Cddg== X-Gm-Message-State: APjAAAVxMFwFiL7K6EPybn6QhDKE2MX+2gBU1gsepSPWNZ8xmsCXTWHw JLNJwvN07NhDCx6G+8PYv2OhzH4SXX0= X-Received: by 2002:a1c:7dcc:: with SMTP id y195mr277417wmc.13.1552935533637; Mon, 18 Mar 2019 11:58:53 -0700 (PDT) Received: from p200300EEEE2F.fritz.box (p200300C987214D00406AF0BED3444E70.dip0.t-ipconnect.de. [2003:c9:8721:4d00:406a:f0be:d344:4e70]) by smtp.gmail.com with ESMTPSA id w10sm13344749wrn.32.2019.03.18.11.58.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 18 Mar 2019 11:58:52 -0700 (PDT) From: Emanuel Bennici To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Matthias Brugger , Joe Perches , Sergio Paracuellos Subject: [PATCH v2] staging: mt7621-pci-phy: Add Spaces to Macro Definition Date: Mon, 18 Mar 2019 19:58:43 +0100 Message-Id: <20190318185852.29741-1-benniciemanuel78@gmail.com> X-Mailer: git-send-email 2.19.1 Reply-To: benniciemanuel78@gmail.com MIME-Version: 1.0 X-Patchwork-Bot: notify Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Improve Code readability by adding Tabs and Spaces after #define Signed-off-by: Emanuel Bennici --- .../staging/mt7621-pci-phy/pci-mt7621-phy.c | 126 +++++++++--------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c b/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c index d3ca2f019112..98c06308143c 100644 --- a/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c +++ b/drivers/staging/mt7621-pci-phy/pci-mt7621-phy.c @@ -14,69 +14,69 @@ #include #include -#define RALINK_CLKCFG1 0x30 -#define CHIP_REV_MT7621_E2 0x0101 - -#define PCIE_PORT_CLK_EN(x) BIT(24 + (x)) - -#define RG_PE1_PIPE_REG 0x02c -#define RG_PE1_PIPE_RST BIT(12) -#define RG_PE1_PIPE_CMD_FRC BIT(4) - -#define RG_P0_TO_P1_WIDTH 0x100 -#define RG_PE1_H_LCDDS_REG 0x49c -#define RG_PE1_H_LCDDS_PCW GENMASK(30, 0) -#define RG_PE1_H_LCDDS_PCW_VAL(x) ((0x7fffffff & (x)) << 0) - -#define RG_PE1_FRC_H_XTAL_REG 0x400 -#define RG_PE1_FRC_H_XTAL_TYPE BIT(8) -#define RG_PE1_H_XTAL_TYPE GENMASK(10, 9) -#define RG_PE1_H_XTAL_TYPE_VAL(x) ((0x3 & (x)) << 9) - -#define RG_PE1_FRC_PHY_REG 0x000 -#define RG_PE1_FRC_PHY_EN BIT(4) -#define RG_PE1_PHY_EN BIT(5) - -#define RG_PE1_H_PLL_REG 0x490 -#define RG_PE1_H_PLL_BC GENMASK(23, 22) -#define RG_PE1_H_PLL_BC_VAL(x) ((0x3 & (x)) << 22) -#define RG_PE1_H_PLL_BP GENMASK(21, 18) -#define RG_PE1_H_PLL_BP_VAL(x) ((0xf & (x)) << 18) -#define RG_PE1_H_PLL_IR GENMASK(15, 12) -#define RG_PE1_H_PLL_IR_VAL(x) ((0xf & (x)) << 12) -#define RG_PE1_H_PLL_IC GENMASK(11, 8) -#define RG_PE1_H_PLL_IC_VAL(x) ((0xf & (x)) << 8) -#define RG_PE1_H_PLL_PREDIV GENMASK(7, 6) -#define RG_PE1_H_PLL_PREDIV_VAL(x) ((0x3 & (x)) << 6) -#define RG_PE1_PLL_DIVEN GENMASK(3, 1) -#define RG_PE1_PLL_DIVEN_VAL(x) ((0x7 & (x)) << 1) - -#define RG_PE1_H_PLL_FBKSEL_REG 0x4bc -#define RG_PE1_H_PLL_FBKSEL GENMASK(5, 4) -#define RG_PE1_H_PLL_FBKSEL_VAL(x) ((0x3 & (x)) << 4) - -#define RG_PE1_H_LCDDS_SSC_PRD_REG 0x4a4 -#define RG_PE1_H_LCDDS_SSC_PRD GENMASK(15, 0) -#define RG_PE1_H_LCDDS_SSC_PRD_VAL(x) ((0xffff & (x)) << 0) - -#define RG_PE1_H_LCDDS_SSC_DELTA_REG 0x4a8 -#define RG_PE1_H_LCDDS_SSC_DELTA GENMASK(11, 0) -#define RG_PE1_H_LCDDS_SSC_DELTA_VAL(x) ((0xfff & (x)) << 0) -#define RG_PE1_H_LCDDS_SSC_DELTA1 GENMASK(27, 16) -#define RG_PE1_H_LCDDS_SSC_DELTA1_VAL(x) ((0xff & (x)) << 16) - -#define RG_PE1_LCDDS_CLK_PH_INV_REG 0x4a0 -#define RG_PE1_LCDDS_CLK_PH_INV BIT(5) - -#define RG_PE1_H_PLL_BR_REG 0x4ac -#define RG_PE1_H_PLL_BR GENMASK(18, 16) -#define RG_PE1_H_PLL_BR_VAL(x) ((0x7 & (x)) << 16) - -#define RG_PE1_MSTCKDIV_REG 0x414 -#define RG_PE1_MSTCKDIV GENMASK(7, 6) -#define RG_PE1_MSTCKDIV_VAL(x) ((0x3 & (x)) << 6) - -#define RG_PE1_FRC_MSTCKDIV BIT(5) +#define RALINK_CLKCFG1 0x30 +#define CHIP_REV_MT7621_E2 0x0101 + +#define PCIE_PORT_CLK_EN(x) BIT(24 + (x)) + +#define RG_PE1_PIPE_REG 0x02c +#define RG_PE1_PIPE_RST BIT(12) +#define RG_PE1_PIPE_CMD_FRC BIT(4) + +#define RG_P0_TO_P1_WIDTH 0x100 +#define RG_PE1_H_LCDDS_REG 0x49c +#define RG_PE1_H_LCDDS_PCW GENMASK(30, 0) +#define RG_PE1_H_LCDDS_PCW_VAL(x) ((0x7fffffff & (x)) << 0) + +#define RG_PE1_FRC_H_XTAL_REG 0x400 +#define RG_PE1_FRC_H_XTAL_TYPE BIT(8) +#define RG_PE1_H_XTAL_TYPE GENMASK(10, 9) +#define RG_PE1_H_XTAL_TYPE_VAL(x) ((0x3 & (x)) << 9) + +#define RG_PE1_FRC_PHY_REG 0x000 +#define RG_PE1_FRC_PHY_EN BIT(4) +#define RG_PE1_PHY_EN BIT(5) + +#define RG_PE1_H_PLL_REG 0x490 +#define RG_PE1_H_PLL_BC GENMASK(23, 22) +#define RG_PE1_H_PLL_BC_VAL(x) ((0x3 & (x)) << 22) +#define RG_PE1_H_PLL_BP GENMASK(21, 18) +#define RG_PE1_H_PLL_BP_VAL(x) ((0xf & (x)) << 18) +#define RG_PE1_H_PLL_IR GENMASK(15, 12) +#define RG_PE1_H_PLL_IR_VAL(x) ((0xf & (x)) << 12) +#define RG_PE1_H_PLL_IC GENMASK(11, 8) +#define RG_PE1_H_PLL_IC_VAL(x) ((0xf & (x)) << 8) +#define RG_PE1_H_PLL_PREDIV GENMASK(7, 6) +#define RG_PE1_H_PLL_PREDIV_VAL(x) ((0x3 & (x)) << 6) +#define RG_PE1_PLL_DIVEN GENMASK(3, 1) +#define RG_PE1_PLL_DIVEN_VAL(x) ((0x7 & (x)) << 1) + +#define RG_PE1_H_PLL_FBKSEL_REG 0x4bc +#define RG_PE1_H_PLL_FBKSEL GENMASK(5, 4) +#define RG_PE1_H_PLL_FBKSEL_VAL(x) ((0x3 & (x)) << 4) + +#define RG_PE1_H_LCDDS_SSC_PRD_REG 0x4a4 +#define RG_PE1_H_LCDDS_SSC_PRD GENMASK(15, 0) +#define RG_PE1_H_LCDDS_SSC_PRD_VAL(x) ((0xffff & (x)) << 0) + +#define RG_PE1_H_LCDDS_SSC_DELTA_REG 0x4a8 +#define RG_PE1_H_LCDDS_SSC_DELTA GENMASK(11, 0) +#define RG_PE1_H_LCDDS_SSC_DELTA_VAL(x) ((0xfff & (x)) << 0) +#define RG_PE1_H_LCDDS_SSC_DELTA1 GENMASK(27, 16) +#define RG_PE1_H_LCDDS_SSC_DELTA1_VAL(x) ((0xff & (x)) << 16) + +#define RG_PE1_LCDDS_CLK_PH_INV_REG 0x4a0 +#define RG_PE1_LCDDS_CLK_PH_INV BIT(5) + +#define RG_PE1_H_PLL_BR_REG 0x4ac +#define RG_PE1_H_PLL_BR GENMASK(18, 16) +#define RG_PE1_H_PLL_BR_VAL(x) ((0x7 & (x)) << 16) + +#define RG_PE1_MSTCKDIV_REG 0x414 +#define RG_PE1_MSTCKDIV GENMASK(7, 6) +#define RG_PE1_MSTCKDIV_VAL(x) ((0x3 & (x)) << 6) + +#define RG_PE1_FRC_MSTCKDIV BIT(5) /** * struct mt7621_pci_phy_instance - Mt7621 Pcie PHY device -- 2.19.1