From patchwork Thu Oct 20 07:59:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Deepak R Varma X-Patchwork-Id: 6037 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp129766wrs; Thu, 20 Oct 2022 01:14:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ZWhco/2ybrK4BKIrMbXbxllMLonSb1KUUi8uOrRKMCI41iNIf9jjnFi6aqinVdf3kpdMr X-Received: by 2002:a05:6a00:f03:b0:563:210a:5ffb with SMTP id cr3-20020a056a000f0300b00563210a5ffbmr12886369pfb.70.1666253647114; Thu, 20 Oct 2022 01:14:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666253647; cv=none; d=google.com; s=arc-20160816; b=S1u3EJFbbe09l2Rp07XDva7ZC1qoLpi9cenQua5ts6VBMEQU8f8SMdSEbC3cpHfffv UiIe+sdJkM/zgdCZBB/sxszONoyJkzKGzJW05RJcRdZEbF/+SBv0VTLwBn/0XFEHoLIy 2YsI9qDycKGzpsUZLDli35Pdww3tn9JG2Rbh2ZkteQqQ5fxft08si5ZfJRDRXdkEuUMO w9V+GVZZa6yWJm1VzoHpjPI8kR+fcuTihjeVBqZlR93sOkPJKlng0OE9bRUWIrf5/fpf r0SjdbTQGS26t3t3xSk3HVwdZr5ofNDFEZwmE1AJvx3ePeMK4cZBFShan8IE41cIwowJ 6JsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=smR7Z9DYJ+/wuVsqW3QFpZiXZ0FqGbSq63kz+hBpw5w=; b=0UNbrmwLw5iXVlLCGtB1h5hzspCTX3spTn83FRj0i+3ASXlOXJvDkg+LcNOMJQPkru CqEuTx+ilgc5JN/63L2N42pIWTaFsMq71k1+zF0LI1eHw/cFFfLHTf+/MfRXkbkoHHSB Aln8G/XweL4ltt9O5fFpWuq/IoxvlRgdXbJMRTmjItM6H952Pz34V8/ARJ/IqhcPBBNi ETWkSZJiHyQiwBj8Zl7dKBubYGROibBWh3IzoCUS5AAX8zMDCebyMcDx5qGQK5uEphdr XnkpC7bdR1iXqpRrfJDQRBOLr2klVUruSaU1ASjX30YouXVwRMACam/qpcXG6K6pBxzl bF8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=HNAWVpWS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j30-20020a63231e000000b0043c1481a835si21534384pgj.267.2022.10.20.01.13.51; Thu, 20 Oct 2022 01:14:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=HNAWVpWS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231158AbiJTIAF (ORCPT + 99 others); Thu, 20 Oct 2022 04:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52138 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231166AbiJTH74 (ORCPT ); Thu, 20 Oct 2022 03:59:56 -0400 Received: from msg-2.mailo.com (msg-2.mailo.com [213.182.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1846248CB for ; Thu, 20 Oct 2022 00:59:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1666252764; bh=iXEetg5zjspQ6k9kRsMIoOJ7BegCQC+g6tKDG0H1sck=; h=X-EA-Auth:Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=HNAWVpWSJeI1BrcmBzAvuB/3a6MtoHHnfpeCtBA1HIK+BDBSBMcX6d7PlAzI/AJFp 7M6BNBdyDUC4udkVLwg3bdcG4EpB7i8x8FDa+23y8asBFR9H2q+xlw7AHt6YGK+msy 2+s9Zx+j7SYs0TPzD5N1KQZHxg+9ZF33Fr7tLuZ0= Received: by b-2.in.mailobj.net [192.168.90.12] with ESMTP via [213.182.55.206] Thu, 20 Oct 2022 09:59:24 +0200 (CEST) X-EA-Auth: d3ipeoSD/6fFCGgnaNUPPMJ5hMyCQQLEQU/q9o9iC3PQKfFNNLIZZbaH0EaVoXlfOnFIGXW5oxKsa9t3YDOqQZMe1yXtvMGb Date: Thu, 20 Oct 2022 13:29:20 +0530 From: Deepak R Varma To: outreachy@lists.linux.dev, Larry.Finger@lwfinger.net, phil@philpotter.co.uk, paskripkin@gmail.com, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, kumarpraveen@linux.microsoft.com, saurabh.truth@gmail.com Subject: [PATCH v3 09/10] staging: r8188eu: Put '{" on the symbol declaration line Message-ID: <1d99f7351217281946e939644f57fb466ea271ec.1666249716.git.drv@mailo.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747193584042015090?= X-GMAIL-MSGID: =?utf-8?q?1747193584042015090?= Open braces '{" should be placed on the line of symbol declaration as per the coding-style guidelines. Improves readability and matches with style used in rest of the code. Issue reported by checkpatch script. Signed-off-by: Deepak R Varma --- Changes in v3: 1. Patch newly added to the patch set. drivers/staging/r8188eu/include/rtw_cmd.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) -- 2.30.2 diff --git a/drivers/staging/r8188eu/include/rtw_cmd.h b/drivers/staging/r8188eu/include/rtw_cmd.h index d8e6bdb1cf45..aea433e8dcfc 100644 --- a/drivers/staging/r8188eu/include/rtw_cmd.h +++ b/drivers/staging/r8188eu/include/rtw_cmd.h @@ -445,8 +445,7 @@ struct getrfintfs_parm { u8 rfintfs; }; -struct Tx_Beacon_param -{ +struct Tx_Beacon_param { struct wlan_bssid_ex network; }; @@ -682,26 +681,22 @@ struct set_ch_parm { }; /*H2C Handler index: 59 */ -struct SetChannelPlan_param -{ +struct SetChannelPlan_param { u8 channel_plan; }; /*H2C Handler index: 60 */ -struct LedBlink_param -{ +struct LedBlink_param { struct LED_871x *pLed; }; /*H2C Handler index: 61 */ -struct SetChannelSwitch_param -{ +struct SetChannelSwitch_param { u8 new_ch_no; }; /*H2C Handler index: 62 */ -struct TDLSoption_param -{ +struct TDLSoption_param { u8 addr[ETH_ALEN]; u8 option; }; @@ -859,8 +854,7 @@ enum rtw_h2c_cmd { #define _SetRFReg_CMD_ _Write_RFREG_CMD_ #ifdef _RTW_CMD_C_ -static struct _cmd_callback rtw_cmd_callback[] = -{ +static struct _cmd_callback rtw_cmd_callback[] = { {GEN_CMD_CODE(_Read_MACREG), NULL}, /*0*/ {GEN_CMD_CODE(_Write_MACREG), NULL}, {GEN_CMD_CODE(_Read_BBREG), &rtw_getbbrfreg_cmdrsp_callback},