Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3354469ybb; Mon, 6 Apr 2020 07:22:52 -0700 (PDT) X-Google-Smtp-Source: APiQypLTfgcpeZFNnRT37WMfiFRtxLNfzi1DOklYHme9c7CxESqGIybJ6dQnW1CXLsT9qnIxL+CZ X-Received: by 2002:a4a:c28e:: with SMTP id b14mr12277758ooq.39.1586182971949; Mon, 06 Apr 2020 07:22:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586182971; cv=none; d=google.com; s=arc-20160816; b=ibPJ8hAiTo8Lo9RMEWjixk/Cuwszikive4kEVd4edazn734wHrQmRzwl/Dk1cGkBcV /5xi40gWGmLybAMSS8Ftvlw4dpgIDLawDxGh+zOo/vEKUiVIndpeH7QZX0CR0XYSx+at awy1cqZR38sd1bbe66TKlKj4kvigCQyuSurZKgs8l5LzDwlkKf38kPQp4JGvRuf7QLww pfPWAfNVhLddYWcTkQ4aRYgGsPZfiKxuU+26pEP5tZk5hTz6nqc8wLHjzSAIeIVZszz3 18jU5T0+vyw1trzgJDrFt0FOEx0I9g7rmGQyM3mU6mwClR3yelb6OTJoDdHgsEyV94ZB BDiw== 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=Qqi6tjpzmDlwPZR8VcGRRL9kXNq6YUTlyqa5XCLg8x8=; b=rV/xsBAXSQcc6oTstRXrvdUiMA+ZjiCRBWenunYrPrK0uYeE5p36u+SPRzctdJ8oTF gPY5i3f1kxJt57hFX2W2DRQcM0i5sBaqoeuNUy6IbgnvxqUqKp+8duayZtHVT/EBuma0 GrvLDEa4hxSXT56gR5mCFnp+N2YgDBKHpsPA149097xhKFNAAxRwogkEarFazoLkaYF4 tDo5k6uc1YfTkesJLiwriPBYqw6mUturnFGo27igWm9E+d97Is2fzh0Z8WyISDKFrKBO YvVFplDBpZn3ehdmd6ZGvAIEDOlmWMclhhjdHsGY7pF6T6prclw+qaPkWqzvOUxbcCSm KB+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ATLYI5tD; 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 l126si7275390oih.31.2020.04.06.07.22.39; Mon, 06 Apr 2020 07:22:51 -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=ATLYI5tD; 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 S1728610AbgDFOWP (ORCPT + 99 others); Mon, 6 Apr 2020 10:22:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:46276 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728200AbgDFOWP (ORCPT ); Mon, 6 Apr 2020 10:22:15 -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 5D50C23D4D; Mon, 6 Apr 2020 14:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586182934; bh=079T5wNZmSG8ZgElAL/OT/dS/9EsBX27bHZ9pHlhHc8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ATLYI5tDGQeBumcAM2blpXje1MIDHzL0PJrmYX6l244ju4FDGPaeLvzqYkcItaI8h 8YEi/zGP7kQdZFsDpAhji+JYnAOqfzuJsxZvf+w7Vh1pBXjM3V+RTC3rv9S1qQyvUC hmtDvVYkq13RNfTKPTIpQ319x4GJqAb9KERFRg6Q= Date: Mon, 6 Apr 2020 16:22:12 +0200 From: Greg Kroah-Hartman To: Oscar Carter Cc: Forest Bond , Malcolm Priestley , Quentin Deslandes , Amir Mahdi Ghorbanian , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] staging: vt6656: Use define instead of magic number for tx_rate Message-ID: <20200406142212.GA48502@kroah.com> References: <20200404141400.3772-1-oscar.carter@gmx.com> <20200404141400.3772-3-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200404141400.3772-3-oscar.carter@gmx.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 :(