From patchwork Tue May 5 22:40:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Okash Khawaja X-Patchwork-Id: 6344641 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1454A9F373 for ; Tue, 5 May 2015 22:40:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4746A20166 for ; Tue, 5 May 2015 22:40:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 639FB2015E for ; Tue, 5 May 2015 22:40:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964917AbbEEWkN (ORCPT ); Tue, 5 May 2015 18:40:13 -0400 Received: from mail-wi0-f172.google.com ([209.85.212.172]:36776 "EHLO mail-wi0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbbEEWkL (ORCPT ); Tue, 5 May 2015 18:40:11 -0400 Received: by wizk4 with SMTP id k4so180234008wiz.1; Tue, 05 May 2015 15:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=CLWybknIxJ2Pzj7e3G9eD1a8UfcTdlLyFite6tyyo0M=; b=TWGTHPLedwuoL0vZujVZvezlisnKbva/iyI/6GtZLD0MXNqnuiDU2kZPlJ+mxv5+O6 5Epw6/yAbpEigqXpHetw85P7VEHwW7LS9bcOoNWsHWuI56AQf8opPhFUZv5408jvr9cL F9ZNPFBrILLUQfhhbBVIQwcQE9wYOZzxHek4wiYmOCr7Xf5yTB9Km9W2yILwVRCtyFB0 sJQPpJbtM9OD6nN33vTeMfBN486fIo7Y9GSUzcgGwJJXKBrMKz/3SX5aFG3mQlhgImdS E0pTvKdcz7VPzrMiJZTI5e3ARHB7NFHILno3mFykbfMG+vicLpfKfNHZrW7xcFuR5Kld if0A== X-Received: by 10.194.83.70 with SMTP id o6mr43872702wjy.44.1430865610448; Tue, 05 May 2015 15:40:10 -0700 (PDT) Received: from bytefire-computer ([90.199.116.241]) by mx.google.com with ESMTPSA id k9sm214832wia.6.2015.05.05.15.40.09 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 May 2015 15:40:09 -0700 (PDT) Date: Tue, 5 May 2015 23:40:07 +0100 From: Okash Khawaja To: joe@perches.com Cc: kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] adm8211: fix checkpatch errors for indentation and new line Message-ID: <20150505224007.GA3655@bytefire-computer> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes these checkpatch.pl errors around a single switch-case block: ERROR: switch and case should be at the same indent ERROR: trailing statements should be on next line More specifically, the fix has been applied to the five occurances of the errors listed below. ERROR: switch and case should be at the same indent #1100: FILE: adm8211.c:1100: + switch (cline) { [...] + default: reg |= (0x0 << 14); ERROR: trailing statements should be on next line #1101: FILE: adm8211.c:1101: + case 0x8: reg |= (0x1 << 14); ERROR: trailing statements should be on next line #1103: FILE: adm8211.c:1103: + case 0x16: reg |= (0x2 << 14); ERROR: trailing statements should be on next line #1105: FILE: adm8211.c:1105: + case 0x32: reg |= (0x3 << 14); ERROR: trailing statements should be on next line #1107: FILE: adm8211.c:1107: + default: reg |= (0x0 << 14); Signed-off-by: Okash Khawaja --- drivers/net/wireless/adm8211.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/adm8211.c b/drivers/net/wireless/adm8211.c index f07a618..058fb4b 100644 --- a/drivers/net/wireless/adm8211.c +++ b/drivers/net/wireless/adm8211.c @@ -1098,14 +1098,18 @@ static void adm8211_hw_init(struct ieee80211_hw *dev) pci_read_config_byte(priv->pdev, PCI_CACHE_LINE_SIZE, &cline); switch (cline) { - case 0x8: reg |= (0x1 << 14); - break; - case 0x16: reg |= (0x2 << 14); - break; - case 0x32: reg |= (0x3 << 14); - break; - default: reg |= (0x0 << 14); - break; + case 0x8: + reg |= (0x1 << 14); + break; + case 0x16: + reg |= (0x2 << 14); + break; + case 0x32: + reg |= (0x3 << 14); + break; + default: + reg |= (0x0 << 14); + break; } }