From patchwork Mon May 11 11:53:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Okash Khawaja X-Patchwork-Id: 6376261 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 00D1C9F399 for ; Mon, 11 May 2015 11:53:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2A42720265 for ; Mon, 11 May 2015 11:53:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3C1502026D for ; Mon, 11 May 2015 11:53:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753644AbbEKLxc (ORCPT ); Mon, 11 May 2015 07:53:32 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:33353 "EHLO mail-wi0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753162AbbEKLxb (ORCPT ); Mon, 11 May 2015 07:53:31 -0400 Received: by wief7 with SMTP id f7so84286896wie.0; Mon, 11 May 2015 04:53:29 -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:in-reply-to:user-agent; bh=iicSmGynZqI8tlLv2df3wx1HIxZVdnO9STDeYubGFgQ=; b=QAlGKtefTViYoO/BAYdPWsax80z1TwsuQf4rGwQPZc4ZisKOr+B/5dFJdcLzdoXdw5 k67VJoBjxjIlnZ2PSh+/r1esItMj3jm998JpBwa8gj4FMu9ysRcnJVZEjlaUDmsaQ4Fu TySnEuApbpalZMs6MFtbU+saOrc6069yvcEI5JSngAQwbzWn/FfkDi0d5xwXdj+/w5se cTR+RSAg50Oi99iyqO1EEKAFb+S7Rkx8Uwa3onmhKvWfOxffllMZYg6djqaxj2mhlrac 0wesaj+NSgGqcO0YPukEh0BZvbxcNqMjnipOPod52sfZQ0A/OBZDm1eWCCE7nIzqck0c Rm8A== X-Received: by 10.194.121.135 with SMTP id lk7mr494817wjb.109.1431345209887; Mon, 11 May 2015 04:53:29 -0700 (PDT) Received: from bytefire-computer (188.29.164.101.threembb.co.uk. [188.29.164.101]) by mx.google.com with ESMTPSA id fu2sm12921306wic.20.2015.05.11.04.53.28 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 May 2015 04:53:28 -0700 (PDT) Date: Mon, 11 May 2015 12:53:25 +0100 From: Okash Khawaja To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/2] adm8211: fix checkpatch errors for indentation and new line Message-ID: <20150511115325.GA5092@bytefire-computer> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20150511114104.GA4985@bytefire-computer> 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; } }