Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1568448ybb; Sat, 4 Apr 2020 07:16:05 -0700 (PDT) X-Google-Smtp-Source: APiQypK9UPvMB6Npsx02js5UtOdwak3kphKOEiJWmKWroZLxcYXS2QAQ0gTKftzOManfimXdTXKS X-Received: by 2002:a05:6830:148d:: with SMTP id s13mr10376482otq.342.1586009765378; Sat, 04 Apr 2020 07:16:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586009765; cv=none; d=google.com; s=arc-20160816; b=YIEoJCIBn1lDpV5vxj/4wrQdC/gjliPQ7kMHkCR5nfgK2vg9HFF3hj315IjiHXSKa6 diagEK0LRd6bohgF9ef45VsUtc15VWoP0hkNg0lF1W98aqubErfhRKtbv5Jmflybla4i Ivgb5c+w35gjctZwJFHzv5TTSDcbhZi446pKOErz+ZJk2Q03eyWi6nu2sv7lVFW2BHEk rVH23APe79V/V7FA9mcRNX+9WgZLZiy3pmBnQkDb37K4DxTNzpxEedIM+ghx85o47OK3 Jg+B0xEl2TrtHm0Hrg+zthzjXzpRR3a0o7RVZmvxri8BbBluIpAQlJC3qkyAtviRCCtD m5Fw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=zuoG6m4SSGePIYm4BVrQ/cFeWXQY62f1akCcESfNR4I=; b=0wZfNlPLLn4FkERS0IFtwq2tyzZCgS2cEAyMVWUnVFyiKVyqdwEyzIh+YAE5Wkw7gz 0m/qX+fUMKADAra2d5HDUnd7zch8bm+kwQhneC9td14VMYpFjjs/T/mWLqkQzYITR6aQ syLVDrFTRXBP+FcotwWc3U1JTZTGiwK9DS2n19DnAeK3LLbgXojXiUV6jPfxLtu2EI3S DR5YeuO7ywYzSdtR+pa3aVEcR9BrNdKLc0y3X+LiJZHzQRbukL4pnr/YxionzoJxXe+L B8TYiproVAfi3710OdRKXKvSyHhSXk1HK6+bskt0W3QPwwVuv/1hlDLsAeRXudM99gLE i6rg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b="Znq/a1bL"; 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 z126si4802877oia.187.2020.04.04.07.15.52; Sat, 04 Apr 2020 07:16:05 -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="Znq/a1bL"; 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 S1726436AbgDDOO5 (ORCPT + 99 others); Sat, 4 Apr 2020 10:14:57 -0400 Received: from mout.gmx.net ([212.227.17.20]:46691 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726039AbgDDOO5 (ORCPT ); Sat, 4 Apr 2020 10:14:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586009692; bh=7fP+0r534ORAa7EBrhAOJZ8ezwRecYYukKw5BxCWheE=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=Znq/a1bLDmfQ0QxVqxwISeclo9Xw4oR4pVPVlOyNOCk2MYQWRyhW6D9PJ9VB27SKO N7KQxEpfD2Bzts5i+6oshXcmHvFA5dJ9SVH3Yi5KIBoOKd4h3APHkOzULLS6qvFms/ h7pKGpNqbMPZYQrSe3kqZwTBTds2QSrfw3vtKtcg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([83.52.229.196]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1M7sDq-1jPfFW1ORm-004y0p; Sat, 04 Apr 2020 16:14:52 +0200 From: Oscar Carter To: Forest Bond , Greg Kroah-Hartman Cc: Oscar Carter , Malcolm Priestley , Quentin Deslandes , Amir Mahdi Ghorbanian , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] staging: vt6656: Use define instead of magic number for tx_rate Date: Sat, 4 Apr 2020 16:13:59 +0200 Message-Id: <20200404141400.3772-3-oscar.carter@gmx.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200404141400.3772-1-oscar.carter@gmx.com> References: <20200404141400.3772-1-oscar.carter@gmx.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Wdol1i82bzr+NiPJVfHu57Yk2KGiOjnqJkPGNV7zEbsu0JaBtSF DUj0KwFi5pnJ70T3E/IZcMees0ihC8YRQTs30Nq7x5+DCSJ5+3s1ncfJtcSpjPRha+hLRzt ok+VvwF94OuKZ34WahZlFWor3pUfD/ajRlCAJjJwkGewvF3Nw5eprjPIKKbYTZ17NPMlS6j 7b3FkgU7l7TzBX3CNSG8w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:xeuFhSr/bQ8=:WsEU0siDOw10GFLlLpoMlG 0bzl0TYgxCMvkG3otsAemqGAVxysBBUSm4xOIhklT0CPzxMYtR88fmYsyo1uGUXNIxqjcE3W1 kWJMPrjyYcJaUVgmUGz9Nz5d44q09rCu3PBN7XjwUQ5klOC0TPMgFcsEs4KzyHCo3E++fKLK5 +8IYQXv8CoaRQYpg6o+6j25Li44646xqWnaYWe4VteSnqmOTzAz0bQoyV+g1aX6O91RGxeKHE z17EkcDeFMS9Yleu/HqnPaMlTs+olA+Av/zXfror9odSQXENsTuEO84mIiCOJKhC6mO+xkoLH 9vbakmvO/rnyvEJvBnQCrKV/qfrDs+6EkMHRO6iBE2jstKOLxF0ZkQcBe3ylXuTVLJYWD1H5F +Rdhf+wprC6mOTIWjKhbj/GBMKRonnv7YYfWi5zrZ5DHOinL7m0ffEwxDkz7SqGxKrh3xJD3C O2RM5Oj/s/fNcrMAPKZVhK+gSodvZY6XphUP+xOM2T9ipKh9rwlRG4swvkR/4/TTMoDmG8Hy1 mFCRmfZqzCc1xW6knShOzXzh7blsGCOBcO88KX9OYQhyJIEgCCdlt0eyYGtb96TlLFRsb50mj +RaMbDwSTEpmZ5aawU3NMTypoREne2X8xCJxvTDuzM9xjfSNSWYiFAQt7LmBvxu9KP3wQpFsK AXx80j3vbS4sYzat1sHAJZxUdzNCQI8nu/NnhOtZe9pUT+2ZQuFC+/GZyUw+eukxvjnlyTCPG XXRkqLbhlDegoxLvM6+0ZJFeuWzG6cQJZiJmJMTSzbInRdoByKo1seOc26fYMOb9SsEdSt+5s qxOvTkVc38MBStyxOB/lDpx7IxTI4z+FfIQ5nAgSiDEy+T6T2WrXtFnWlUwU3BvotXQgsPFir kU2B6HeSuap7RoDri6VDFThxQ7oG6Hc/t+i4waOtviU/milIG799hcCYc+wUYk0P0jwNeJEl2 WcqLLAkwiudP0siesKh3DI4n+K5F8EOOjW2sVBADW/NuctwXGGbOEVAlBNNHIjtNIBeBR1oNo CWgCKDTfCiyFGfEHfXuQmQAf+buR5Ys6XLIJ3lZVPgg5IVJ8H+m8Po3jvIlkkR455hGdevFdV J+iLleNJGuze09Q6FbXntTesaQz+fFyCzN108Y8/D/bfL+r7b45t8SVBfkEVTKzbN4/WEVrVs GBdKIyYNAsdZpdilC0fN1nQE4TTYyhrJy+BJvk/zMklE2I3F2Cx8LNQNghtmQo0MjOWwepw8I 0YIoXpTrROQgdlukt Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 =2D-- 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/ba= seband.c index 3e4bd637849a..a785f91c1566 100644 =2D-- 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 p= kt_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 =2D- 2.20.1