Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp266708ybg; Sun, 26 Jul 2020 04:00:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxDuFg92N0cZKVdSk/OeYcWyEFDmUWnSX0VYIJus145+vBfW6laY7LHfDx7VuOWLFqSsP3 X-Received: by 2002:a17:906:b157:: with SMTP id bt23mr17569044ejb.354.1595761231077; Sun, 26 Jul 2020 04:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595761231; cv=none; d=google.com; s=arc-20160816; b=dLPVUXsadheEK6mjoAn227s59/1G0YhjGnfWTQkbMoHtgNG7snAz+tpqEDhGJyplGI 8nlG7P3ofxDl62OHW0gfv9Jq8ILUIasrnfUSaB7ohnGw0K1GEB7V4nIpvxBhDF4jaGqM rKhgMQVldOoffNillileXy91ApLo8SaYfJMEZy6Xt5IQlBNsmBvNDgqJfLZsJ5iP5Sif HboSOIKFkzM4ngHd7coegMrOXUe6AVctB+1WUCVZva75xWUbYGTlNKhZxnNJEr6W7P5O xW8GUY2/qJv5sv1u/A+3NjBYBrpZFp67UAAijqaZfjCG+LnL5lcE+q1V28KmNOkvkVtn tZpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=b8YzmgnZ4V6A+9usWo6SdtLgnLtKAUiTM7Bz9URxH+w=; b=fYXemozTde3Y4diVRImCVpRCLZEYO/dMsDgbIctqn/zgtR+AOMrhojxmNsi3cfdA2Z fn5ZPSHGBtB2Em/GhC6tJuuIzDLzc1ZL6lET20MkcJjokTe1ruKwuNde/BxXK7ZML/2i LLm/99oCJLRVbj0C147tzGzlVPfmNjHynhHZdcZcLzxQWWMbQpVY1KJQ2pquGZ/zSuvm x/cceNE9364CZGSsgF60RlTfBRzc2KUKWJ5uV0q4WgvQISBEK0vi/ZneZYNEvCB/HXep Ewk34ZBPSOrRhQ8bP1frXWVzGiOAiamw6ysqsdQXt8I6Vffc/VcjDJLDDkCsgYYUcjcG ls6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t5J1N832; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g8si3977886ejm.100.2020.07.26.04.00.08; Sun, 26 Jul 2020 04:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=t5J1N832; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726843AbgGZK75 (ORCPT + 99 others); Sun, 26 Jul 2020 06:59:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:38172 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725972AbgGZK74 (ORCPT ); Sun, 26 Jul 2020 06:59:56 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 45071206E3; Sun, 26 Jul 2020 10:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595761195; bh=BlWNHRx81BkVjfiVPZH2lP4OPiWIUw2bTOwNTT+SBNw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=t5J1N8320A2lXEGDUBMQ9QLS/rNDPxDuntxRrLJwbyME6byZ7HmDYpa1XgCR+vOIv olt8YyQKpYVhahn09WHv4arWGIMp8hqm430g0Ih6lbrEhvClU2IqBGJmScRSVz2qz0 +x8Qd/MkwYW9NCUeHu+uuxffb+CEpQlh5RkiMsSs= Date: Sun, 26 Jul 2020 12:59:52 +0200 From: Greg KH To: Aditya Jain Cc: devel@driverdev.osuosl.org, hdegoede@redhat.com, linux-kernel@vger.kernel.org, Larry.Finger@lwfinger.net Subject: Re: [PATCH v2] staging: rtl8723bs: include: Fix coding style issues Message-ID: <20200726105952.GA1280500@kroah.com> References: <20200726105302.52188-1-aditya.jainadityajain.jain@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200726105302.52188-1-aditya.jainadityajain.jain@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 26, 2020 at 04:23:02PM +0530, Aditya Jain wrote: > Cleaning messy function declartions and fixing code style > errors in hal_phy_cfg.h as reported by checkpatch.pl > > Signed-off-by: Aditya Jain > --- > .../staging/rtl8723bs/include/hal_phy_cfg.h | 118 +++++------------- > 1 file changed, 33 insertions(+), 85 deletions(-) > > diff --git a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h > index 419ddb0733aa..2f123903279c 100644 > --- a/drivers/staging/rtl8723bs/include/hal_phy_cfg.h > +++ b/drivers/staging/rtl8723bs/include/hal_phy_cfg.h > @@ -8,54 +8,31 @@ > #define __INC_HAL8723BPHYCFG_H__ > > /*--------------------------Define Parameters-------------------------------*/ > -#define LOOP_LIMIT 5 > -#define MAX_STALL_TIME 50 /* us */ > +#define LOOP_LIMIT 5 > +#define MAX_STALL_TIME 50 /* us */ > #define AntennaDiversityValue 0x80 /* Adapter->bSoftwareAntennaDiversity ? 0x00:0x80) */ > #define MAX_TXPWR_IDX_NMODE_92S 63 > -#define Reset_Cnt_Limit 3 > - > -#define MAX_AGGR_NUM 0x07 > +#define Reset_Cnt_Limit 3 > > +#define MAX_AGGR_NUM 0x07 > > /*--------------------------Define Parameters End-------------------------------*/ > > - > /*------------------------------Define structure----------------------------*/ > > /*------------------------------Define structure End----------------------------*/ > > /*--------------------------Exported Function prototype---------------------*/ > -u32 > -PHY_QueryBBReg_8723B( > -struct adapter *Adapter, > -u32 RegAddr, > -u32 BitMask > - ); > - > -void > -PHY_SetBBReg_8723B( > -struct adapter *Adapter, > -u32 RegAddr, > -u32 BitMask, > -u32 Data > - ); > - > -u32 > -PHY_QueryRFReg_8723B( > -struct adapter * Adapter, > -u8 eRFPath, > -u32 RegAddr, > -u32 BitMask > - ); > - > -void > -PHY_SetRFReg_8723B( > -struct adapter * Adapter, > -u8 eRFPath, > -u32 RegAddr, > -u32 BitMask, > -u32 Data > - ); > +u32 PHY_QueryBBReg_8723B(struct adapter *Adapter, u32 RegAddr, u32 BitMask); > + > +void PHY_SetBBReg_8723B(struct adapter *Adapter, u32 RegAddr, > + u32 BitMask, u32 Data); > + > +u32 PHY_QueryRFReg_8723B(struct adapter *Adapter, u8 eRFPath, > + u32 RegAddr, u32 BitMask); > + > +void PHY_SetRFReg_8723B(struct adapter *Adapter, u8 eRFPath, > + u32 RegAddr, u32 BitMask, u32 Data); > > /* MAC/BB/RF HAL config */ > int PHY_BBConfig8723B(struct adapter *Adapter); > @@ -64,57 +41,28 @@ int PHY_RFConfig8723B(struct adapter *Adapter); > > s32 PHY_MACConfig8723B(struct adapter *padapter); > > -void > -PHY_SetTxPowerIndex( > -struct adapter * Adapter, > -u32 PowerIndex, > -u8 RFPath, > -u8 Rate > - ); > - > -u8 > -PHY_GetTxPowerIndex( > -struct adapter * padapter, > -u8 RFPath, > -u8 Rate, > -enum CHANNEL_WIDTH BandWidth, > -u8 Channel > - ); > - > -void > -PHY_GetTxPowerLevel8723B( > -struct adapter * Adapter, > - s32* powerlevel > - ); > - > -void > -PHY_SetTxPowerLevel8723B( > -struct adapter * Adapter, > -u8 channel > - ); > - > -void > -PHY_SetBWMode8723B( > -struct adapter * Adapter, > -enum CHANNEL_WIDTH Bandwidth, /* 20M or 40M */ > -unsigned char Offset /* Upper, Lower, or Don't care */ > -); > +void PHY_SetTxPowerIndex(struct adapter *Adapter, u32 PowerIndex, > + u8 RFPath, u8 Rate); > > -void > -PHY_SwChnl8723B(/* Call after initialization */ > -struct adapter *Adapter, > -u8 channel > - ); > - > -void > -PHY_SetSwChnlBWMode8723B( > -struct adapter * Adapter, > -u8 channel, > -enum CHANNEL_WIDTH Bandwidth, > -u8 Offset40, > -u8 Offset80 > +u8 PHY_GetTxPowerIndex(struct adapter *padapter, u8 RFPath, u8 Rate, > + enum CHANNEL_WIDTH BandWidth, u8 Channel); > + > +void PHY_GetTxPowerLevel8723B(struct adapter *Adapter, s32 *powerlevel); > + > +void PHY_SetTxPowerLevel8723B(struct adapter *Adapter, u8 channel); > + > +void PHY_SetBWMode8723B(struct adapter *Adapter, > + enum CHANNEL_WIDTH Bandwidth, /* 20M or 40M */ > + unsigned char Offset /* Upper, Lower, or Don't care */ > ); > > +/* Call after initialization */ > +void PHY_SwChnl8723B(struct adapter *Adapter, u8 channel); > + > +void PHY_SetSwChnlBWMode8723B(struct adapter *Adapter, u8 channel, > + enum CHANNEL_WIDTH Bandwidth, > + u8 Offset40, u8 Offset80); > + > /*--------------------------Exported Function prototype End---------------------*/ > > #endif > -- > 2.25.1 > > _______________________________________________ > devel mailing list > devel@linuxdriverproject.org > http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - Your patch did many different things all at once, making it difficult to review. All Linux kernel patches need to only do one thing at a time. If you need to do multiple things (such as clean up all coding style issues in a file/driver), do it in a sequence of patches, each one doing only one thing. This will make it easier to review the patches to ensure that they are correct, and to help alleviate any merge issues that larger patches can cause. - You did not specify a description of why the patch is needed, or possibly, any description at all, in the email body. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what is needed in order to properly describe the change. - You did not write a descriptive Subject: for the patch, allowing Greg, and everyone else, to know what this patch is all about. Please read the section entitled "The canonical patch format" in the kernel file, Documentation/SubmittingPatches for what a proper Subject: line should look like. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot