Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3506740ybb; Mon, 6 Apr 2020 10:04:48 -0700 (PDT) X-Google-Smtp-Source: APiQypIbYwKEFhwOcxWqpVjVbdJQGbGzypuSut8p/uN/mNdQ+Wd5gSWjFzv2i88qgYOOESzWNJde X-Received: by 2002:a9d:2c69:: with SMTP id f96mr48834otb.62.1586192687820; Mon, 06 Apr 2020 10:04:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586192687; cv=none; d=google.com; s=arc-20160816; b=bCLDRxj8AmPpqIwL0zWeyanSEBJrEzvtsgYrKDq73vURekG84Zy22E1jtnhPVZVieF zQh8yMuOJ+gFVmkckJTfcxUXf2CW+z0fCFD+YK4Np4s0rd1Ep55alUBk8zW6U85IPweZ cCmRC5VtTqE1G5ZF7VqRyF3xMsiw92DF61tjH0uoCCA3GRWZu/9skJocsjP7+EDAZZTG hIEhBiqY/QOEzSit0M0eBQqsIXuvSoShpX+r9onyXHI7GflLuzINePQpQ5gX0udj3l4d R1J5/ZqX99vyRxDrc5ul4sbwxfeL3Z3feo+dmUAHGs1/gFAUTTdxvdpAtl04Y7NlcTBl cY4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:user-agent :in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:dkim-signature; bh=3f6yX0R832yE5TBvtcBx3m9ELfo8HEOkHgfoiS30xOc=; b=HirmosbyUtroQDu9JEj1kRkGtCkfHrRBblDn6TPGzO9wj4DSsnrR1euoqUR25Ck1s+ o+jKEzDKBJDQzMTuF85ZizYdejYQzDB2aHHin85FXu2/YvTGCvdQF+trRuBSkPinDS6U MBuhndNnoEjfaRXzOEnNgYJyxFBpo4IvedspgGhCo3qeGno/02YDdjPzuaIHIvZ2Ec6l s+yo/6TGzREm2GofrPN/jR+8/a/jyLSUGisJw6KRYo0xNGq20YR0Xdcss6h17BooVPu/ iOCOzZE34/X2KiM6gi58UGdBq1ZdCGD6FJWMRL0hSKgWvCxaFA0rICyOZo0fmR3cKG4y C0ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=MFG6rXiR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l43si50417ooi.79.2020.04.06.10.04.33; Mon, 06 Apr 2020 10:04:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=MFG6rXiR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729454AbgDFQiu (ORCPT + 99 others); Mon, 6 Apr 2020 12:38:50 -0400 Received: from mout.gmx.net ([212.227.15.18]:52519 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728962AbgDFQit (ORCPT ); Mon, 6 Apr 2020 12:38:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586191118; bh=w3UbNz9WVDwj6f3Rz/KrSMUxNxensD50y9LU7VpbUH4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=MFG6rXiRYWZ5jJOIQ2v2u3TyXoeKqAxwr31m6KEa8u+Vg38sgECa7kKwXLEvK6CCP VT4Xcy7WLWbDdhaR+fe+1uzqpUdhrMdzA3zqzx+5MiPC/emBNFRONEAo0xfuYzM5pg Txd1drXg4mxQboOYsOXE23E5qbPwAbBvR39otjMU= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ubuntu ([83.52.229.196]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MV67o-1jmPaS1XSY-00SAmV; Mon, 06 Apr 2020 18:38:38 +0200 Date: Mon, 6 Apr 2020 18:38:36 +0200 From: Oscar Carter To: Greg Kroah-Hartman Cc: Forest Bond , Malcolm Priestley , Quentin Deslandes , Amir Mahdi Ghorbanian , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Dan Carpenter Subject: Re: [PATCH 2/3] staging: vt6656: Use define instead of magic number for tx_rate Message-ID: <20200406163835.GB3230@ubuntu> References: <20200404141400.3772-1-oscar.carter@gmx.com> <20200404141400.3772-3-oscar.carter@gmx.com> <20200406142212.GA48502@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200406142212.GA48502@kroah.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Provags-ID: V03:K1:PWcb7TKfBCjP5J41/evS8VzfKGQ2NGhrEqncwMb6FiIoe5Qb1jC AqQ31UAA1NB0izfHGaooW2w2y9qJElbSqwzM8IQgb9fhskxE3X+owYUQYW/s95Y8YWE0z4k m1qL2r7TM4OAC/7Zw4g9F5fHTmTPhIivmLJi4VRL0x+SN5rTNQslCF9xF4Gi5yVIIuUaK5W f0H/EKVRXo4LADs3sehLg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:HFUHSZHedLg=:UjzjxrjYYVrfeFH7TeXf+3 Ijgl9/R6JH2rIYaKzE4XOa7a0ZvbpNhRAoLDAN8v5mDMqzr32iuWAm02/I0ux3gCeuBo0BoRW k0n5E7BAbMupYO1YBYG7Fmim65BV8zhyRSWtLB2CR11wsBsRL3VYcQyQTCajwb/HDqM6aN599 RfoWlSMwyPYU0DpOI0PQrktNSdOmPSiTJjkpbG2AC+hAf12VtXkB0G7zp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t Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 06, 2020 at 04:22:12PM +0200, Greg Kroah-Hartman wrote: > On Sat, Apr 04, 2020 at 04:13:59PM +0200, Oscar Carter wrote: > > Use the define RATE_11M present in the file "device.h" instead of the > > magic number 3. So the code is more clear. > > > > Signed-off-by: Oscar Carter > > Reviewed-by: Dan Carpenter > > --- > > drivers/staging/vt6656/baseband.c | 3 ++- > > 1 file changed, 2 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt665= 6/baseband.c > > index 3e4bd637849a..a785f91c1566 100644 > > --- a/drivers/staging/vt6656/baseband.c > > +++ b/drivers/staging/vt6656/baseband.c > > @@ -24,6 +24,7 @@ > > > > #include > > #include > > +#include "device.h" > > #include "mac.h" > > #include "baseband.h" > > #include "rf.h" > > @@ -141,7 +142,7 @@ unsigned int vnt_get_frame_time(u8 preamble_type, = u8 pkt_type, > > > > rate =3D (unsigned int)vnt_frame_time[tx_rate]; > > > > - if (tx_rate <=3D 3) { > > + if (tx_rate <=3D RATE_11M) { > > if (preamble_type =3D=3D 1) > > preamble =3D 96; > > else > > -- > > 2.20.1 > > This doesn't apply to my tree :( > Sorry, but I don't understand what it means. This meant that I need to reb= ase this patch against your staging-next branch of your staging tree ? Or it m= eans something else ? Thanks, oscar carter