Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3557083ybb; Mon, 6 Apr 2020 11:00:10 -0700 (PDT) X-Google-Smtp-Source: APiQypLzwGWavmF21XmsjTJC/hpW6XTbY4eoXBWQM1QIXJzAUd7YfGprOg9OoBUrgkkPlHLExtgG X-Received: by 2002:a4a:e047:: with SMTP id v7mr291693oos.49.1586196010515; Mon, 06 Apr 2020 11:00:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586196010; cv=none; d=google.com; s=arc-20160816; b=arQQ4VT6kcli+l1gpOnSEjZPsqhacq7nq+8bAAoFIRGLnG6J1rIikXcO2IZxz+qAV0 gQAeUVTdsiNgccbBr2hdcw8KnvFAnTQhGV7F9yf+QAmgpf2ekLt2wbwTP1xdw9oIWz+S Bnvi16aZyv5CvL+gceQtCEZj1+7bCFghK0vWrqckIyplplKLvoyd4MUeitzUSuIgOwye fmWrzVd89zW6TTySH22q5hu0xNo2jSzVS2UGlrLkLF8KcFamBDntc/HgWzfcYB5pOHLA NUzA/rBpJo/3Ag9LPOrzMuar9AUii1epHHqNFTWp9I5aNADwguc5B2aOEYCTXAzAoW4B 6AIQ== 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=hGmFive0KaL6Aty0zmZUVAR23X7gPsaHF+xDIluzjcs=; b=aRIy4YutlLkFHw6/cWb+fbGN7bpwEpIpuuhEtztf87i5oAaJ1lLkVrCfCh4e6Qz2AA ZHTgKpYKJe6j/O5xoxpvO0r0vBLsWvY4r/6mI/FSiYJlCWkAUEbjdvM67r3kBy/WFi0Z futMJcqUwZqDWHVHDizOIAnS5Wg+CwXwKneXZDm5yJNnxprS2N4XavbL1TxRYuUK8DWl S2ixMxrzoDTesuDN2XP/s2ZILLnvPgGVE6ZYg8hmntYXIuJSlwbT4r8o0Nef1v/RGMHb Ud7zgOhewiNzzp4wky1T404BIS1HAUsxOS7fY8p4qaueraeWhvyPfW5QJGrNQLouOjrt LhHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=X0Fr7y1L; 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 50si131664otv.259.2020.04.06.10.59.57; Mon, 06 Apr 2020 11:00:10 -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=@kernel.org header.s=default header.b=X0Fr7y1L; 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 S1726926AbgDFR6M (ORCPT + 99 others); Mon, 6 Apr 2020 13:58:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:51084 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbgDFR6M (ORCPT ); Mon, 6 Apr 2020 13:58:12 -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 1730D206F8; Mon, 6 Apr 2020 17:58:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586195891; bh=e06vrVeML9BgrogDrHrkIp58yEz5FUbz+0h5lORW6os=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X0Fr7y1LzcIEae6Qsb4GharopeCTFtdrHj4Qn6VPzfRayz6ZNT4l00fWUty2aW0g/ +ANDIgha7SuFM59OpjHfzpBhpn8VhhGc73P3D5yrkEvpyutNBWwcuRwJ5kTz42fAa1 8D2/Kgi9YmHFX4/sFIjHzGQYoAL3lCy5VvBr+64E= Date: Mon, 6 Apr 2020 19:58:08 +0200 From: Greg Kroah-Hartman To: Oscar Carter Cc: devel@driverdev.osuosl.org, Malcolm Priestley , linux-kernel@vger.kernel.org, Forest Bond , Dan Carpenter Subject: Re: [PATCH 2/3] staging: vt6656: Use define instead of magic number for tx_rate Message-ID: <20200406175808.GB167424@kroah.com> References: <20200404141400.3772-1-oscar.carter@gmx.com> <20200404141400.3772-3-oscar.carter@gmx.com> <20200406142212.GA48502@kroah.com> <20200406163835.GB3230@ubuntu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200406163835.GB3230@ubuntu> 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 06:38:36PM +0200, Oscar Carter wrote: > 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/vt6656/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 = (unsigned int)vnt_frame_time[tx_rate]; > > > > > > - if (tx_rate <= 3) { > > > + if (tx_rate <= RATE_11M) { > > > if (preamble_type == 1) > > > preamble = 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 rebase > this patch against your staging-next branch of your staging tree ? Yes, and 3/3 as well, because I dropped the 1/3 patch here. thanks, greg k-h