From patchwork Tue May 5 11:37:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Okash Khawaja X-Patchwork-Id: 6336971 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 3877ABEEE1 for ; Tue, 5 May 2015 11:37:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 57E08202A1 for ; Tue, 5 May 2015 11:37:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 611342026D for ; Tue, 5 May 2015 11:37:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1161276AbbEELhk (ORCPT ); Tue, 5 May 2015 07:37:40 -0400 Received: from mail-wg0-f48.google.com ([74.125.82.48]:33906 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752568AbbEELhh (ORCPT ); Tue, 5 May 2015 07:37:37 -0400 Received: by wgso17 with SMTP id o17so179686533wgs.1; Tue, 05 May 2015 04:37:36 -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=HRAV6yRLoYwzEFpsGXOm2ByAnjj9j708Q5MJxfXL8wg=; b=H8cnhYxCwpnBRFun2QK420903Q92XVAJnKbaWfjgQoY8x65Nn3H0ui5UkN2bJaHy5B DBUAxeUMvmmQRpyhNiIJgZ/vk//vr++5ZrN6SxvggHwVJ2FGbWdctzdtOrAJQuuy9I43 wdlkWEKz/w6lQwqm+XviurQ0xDn2OvPxfqjmLzHfhIOTWKd9cjj22JYHuTi0l3E6dhsJ vUvSbybieW3P9bmIJ3IUhRHNLiSB9x3u/WHZXmscjLc161vLJu7/y3hRcwo7jePivFDi NPonUqjq8fMYyj+bEneaAsJTH7P2b3DuqMzYyrrLvchl5jVaZDrITzLGrfDT9B23Qzv0 kJPA== X-Received: by 10.180.106.226 with SMTP id gx2mr3174405wib.48.1430825856011; Tue, 05 May 2015 04:37:36 -0700 (PDT) Received: from bytefire-computer (188.29.165.181.threembb.co.uk. [188.29.165.181]) by mx.google.com with ESMTPSA id ex5sm15743594wib.2.2015.05.05.04.37.34 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 05 May 2015 04:37:35 -0700 (PDT) Date: Tue, 5 May 2015 12:37:31 +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] adm8211: fix checkpatch errors for indentation and new line around switch-case Message-ID: <20150505113731.GA2885@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=ham 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; } }