Received: by 10.223.164.202 with SMTP id h10csp3127686wrb; Sat, 25 Nov 2017 02:35:38 -0800 (PST) X-Google-Smtp-Source: AGs4zMY7UIkBnuXEIsyPeDY841Shl5Yiwu/zcPOQNlRp6fz60x6EPYz7npc3kvwjWrX1Xi53hpOC X-Received: by 10.98.192.202 with SMTP id g71mr30094684pfk.33.1511606138616; Sat, 25 Nov 2017 02:35:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511606138; cv=none; d=google.com; s=arc-20160816; b=zmrq4gdsrmiB1mT09M6+gHi2fqelQ9QNQbd1ayKSZH8/WeCNa7F1DKXtEUloCfHDRg 7vozgyG/g5e00nWVoe+80qof2omSCsqzXYmrcPvcDSI/GxmZO4m36aRyptpZ0O1/VEdp TnBo1tgQmDqmB9muynOVEYLZcdmZgmF/HaNwepSVn4QSumlr5bvcKVVg9IgYK45vw2i+ aLrNCQF3Mk/pY1ZvZ7/UI8BE+CHiCtf79NDKUstMqC5WeuXaZHbGptgyC+qk2sIlOFpd Ve4h8geS/uP26Opp8ttNewNTm/J4pyf7kBsIQih0dn+W+hDWLO89Oab9CHGw+Y1jxNVM 1aQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=QK4hcbFeebal22ywfowAyp3jeCni/6aFxOIu3RITG9g=; b=TthHaOQSLEvZT+40SJdD5UfO6ajfVHCg2F5/4aLqRePHvTAS3aqgbNwJ7jSJoiAlS7 7R7DAyaVGTHzucLFMjuTVjgY/ATgbBHaurN7u7+9J6Jx0TZMHBv5pBEBPl6ZTejmgLkt wPizXlZq8zI3LqL66qy8z08Xlm+KQKZbORRYUpjmXy/1Gbm9qPdBl87MirXLXtBBPdvQ aO5u+BjzG6Vkhnvixgmq+Tn9GgWL6OGRFe1CHdDJCH7RLAXpikftyR08C7vPbO5PY3A2 p/aJ+Bz/0bgyzJjqQHdPiGl2RFYX2OOeOy2ZrYscQVbfQT3CVgn6Adion/ZPr0l8A5lU 2iLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sbkxPEw4; 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=NONE 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 u90si21599542pfg.402.2017.11.25.02.35.18; Sat, 25 Nov 2017 02:35:38 -0800 (PST) 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=sbkxPEw4; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751122AbdKYKeV (ORCPT + 79 others); Sat, 25 Nov 2017 05:34:21 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:37738 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750880AbdKYKeS (ORCPT ); Sat, 25 Nov 2017 05:34:18 -0500 Received: by mail-pg0-f66.google.com with SMTP id m4so6739897pgc.4; Sat, 25 Nov 2017 02:34: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; bh=QK4hcbFeebal22ywfowAyp3jeCni/6aFxOIu3RITG9g=; b=sbkxPEw48Z2uw0oNK+3wZAgO4hTcVeGxiEGQeQTjxIScYLOS3OccYSuwSGH9P7YHeV jclK58yQFWfTFYi3tGZhiILEHIcXrURvwIZlaD/LXM9BSQfDmGWNGk5HT+wHe2nxzdW1 6O7ULrgp90afikuSKHZey1bhkEMjQbHUiRxBNEYfndPvPHQfl6IZv6VjoPA3QFUt6+BN CRsrzRWMDHZwcjs+RSg9B6j/nQEq0/i78Hyp1aGn7+MY426vqrPMB/G2rGIeYQGdjz+R uNH/ErR8SgHwSmUGndS0MSN5sHw3YexNqKba2UdXYKaRAqBlVqhhU35eKO2ebxAFWr14 2qHg== 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; bh=QK4hcbFeebal22ywfowAyp3jeCni/6aFxOIu3RITG9g=; b=f/trr76FFfluwHtmHVvnma01mTcDBvqZwsO/8VY383r/2Nta0F4GraCEn6KapQ9ENK LQHIxQ+Wg7NJnS+WywcAsY45bsfYuEqjIJ5bPz1GgAcmSQeUwnnGbimy89/7AQYZIvAg UgWehb8n+Hh3P/IRJpz29VRaAZ+ygdMTAfC5kNWnQ0NfvSXEP2OJpYHPZjbF4IF4qHhD XzAg48gu7KzPDv9fwxyKepZVcJR/s0Olo+Amlh/rKQFkWHeIWSU91lS8bOjVQgb1BGiw k2JAMseazodRLYJ7qnUJ599fSBUZ0TUvggVokSCdrh8tjZ/FycDDAA1AR0jVFGPKMHb/ jkSA== X-Gm-Message-State: AJaThX5sne3G8U2jxA9WLD3zh03e+GbpqB0GITeY/Ztni5jC/bQS1nRC qvlH8UroP72V+ObA40na7NG0cg== X-Received: by 10.98.236.137 with SMTP id e9mr30463647pfm.123.1511606058043; Sat, 25 Nov 2017 02:34:18 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id f15sm2213634pgu.83.2017.11.25.02.34.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Nov 2017 02:34:17 -0800 (PST) From: Arvind Yadav To: b.zolnierkie@samsung.com, tj@kernel.org, sergei.shtylyov@cogentembedded.com Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org Subject: [PATCH] pata_pdc2027x: Fix coding sytle error Date: Sat, 25 Nov 2017 16:04:07 +0530 Message-Id: <68e25992911d7c4d6c17b9f31524a614466d9588.1511605703.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix these checkpatch.pl error: ERROR: space prohibited before open square bracket '['. ERROR: space prohibited after that '~' (ctx:WxW) + mask &= ~ (1 << (6 + ATA_SHIFT_UDMA)); ERROR: spaces required around that '?' (ctx:VxW) + long pout_required = board_idx? PDC_133_MHZ:PDC_100_MHZ; ERROR: that open brace { should be on the previous line + const struct ata_port_info *ppi[] = + { &pdc2027x_port_info[board_idx], NULL }; Signed-off-by: Arvind Yadav --- changes in v1: These cheange was a part of '[PATCH] pata_pdc2027x: Remove unnecessary error check and coding style error' and got comment 'Please fix the checkpatch.pl errors in a sperate patch'. drivers/ata/pata_pdc2027x.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/ata/pata_pdc2027x.c b/drivers/ata/pata_pdc2027x.c index 6348a83..d1e8b63 100644 --- a/drivers/ata/pata_pdc2027x.c +++ b/drivers/ata/pata_pdc2027x.c @@ -84,7 +84,7 @@ static int pdc2027x_set_mode(struct ata_link *link, struct ata_device **r_failed */ static struct pdc2027x_pio_timing { u8 value0, value1, value2; -} pdc2027x_pio_timing_tbl [] = { +} pdc2027x_pio_timing_tbl[] = { { 0xfb, 0x2b, 0xac }, /* PIO mode 0 */ { 0x46, 0x29, 0xa4 }, /* PIO mode 1 */ { 0x23, 0x26, 0x64 }, /* PIO mode 2 */ @@ -94,7 +94,7 @@ static struct pdc2027x_pio_timing { static struct pdc2027x_mdma_timing { u8 value0, value1; -} pdc2027x_mdma_timing_tbl [] = { +} pdc2027x_mdma_timing_tbl[] = { { 0xdf, 0x5f }, /* MDMA mode 0 */ { 0x6b, 0x27 }, /* MDMA mode 1 */ { 0x69, 0x25 }, /* MDMA mode 2 */ @@ -102,7 +102,7 @@ static struct pdc2027x_mdma_timing { static struct pdc2027x_udma_timing { u8 value0, value1, value2; -} pdc2027x_udma_timing_tbl [] = { +} pdc2027x_udma_timing_tbl[] = { { 0x4a, 0x0f, 0xd5 }, /* UDMA mode 0 */ { 0x3a, 0x0a, 0xd0 }, /* UDMA mode 1 */ { 0x2a, 0x07, 0xcd }, /* UDMA mode 2 */ @@ -277,7 +277,7 @@ static unsigned long pdc2027x_mode_filter(struct ata_device *adev, unsigned long ATA_ID_PROD_LEN + 1); /* If the master is a maxtor in UDMA6 then the slave should not use UDMA 6 */ if (strstr(model_num, "Maxtor") == NULL && pair->dma_mode == XFER_UDMA_6) - mask &= ~ (1 << (6 + ATA_SHIFT_UDMA)); + mask &= ~(1 << (6 + ATA_SHIFT_UDMA)); return mask; } @@ -520,7 +520,7 @@ static void pdc_adjust_pll(struct ata_host *host, long pll_clock, unsigned int b void __iomem *mmio_base = host->iomap[PDC_MMIO_BAR]; u16 pll_ctl; long pll_clock_khz = pll_clock / 1000; - long pout_required = board_idx? PDC_133_MHZ:PDC_100_MHZ; + long pout_required = board_idx ? PDC_133_MHZ : PDC_100_MHZ; long ratio = pout_required / pll_clock_khz; int F, R; @@ -705,8 +705,8 @@ static int pdc2027x_init_one(struct pci_dev *pdev, static const unsigned long cmd_offset[] = { 0x17c0, 0x15c0 }; static const unsigned long bmdma_offset[] = { 0x1000, 0x1008 }; unsigned int board_idx = (unsigned int) ent->driver_data; - const struct ata_port_info *ppi[] = - { &pdc2027x_port_info[board_idx], NULL }; + const struct ata_port_info *ppi[] = { + &pdc2027x_port_info[board_idx], NULL }; struct ata_host *host; void __iomem *mmio_base; int i, rc; -- 2.7.4 From 1585964133644825088@xxx Tue Dec 05 17:01:00 +0000 2017 X-GM-THRID: 1585919844805576455 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread