Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4571477ybb; Tue, 14 Apr 2020 09:51:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKbRv0rU/eK5A4Hj6SsAltO3AE+kYoTcmgnVDGVBE13b/gwr00EeGyljLtogBmfnY6/Hu/b X-Received: by 2002:a17:906:804a:: with SMTP id x10mr1108016ejw.86.1586883063081; Tue, 14 Apr 2020 09:51:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586883063; cv=none; d=google.com; s=arc-20160816; b=sHdElYlbi1UxI98nfqRLOKO2ISuR6Du1h2t2nSqbx/kJtaoETdEI4KWn17lIoESQg1 mg+zk9wkiYlgXXkyAaaFRl30NzGT87tiCDHv82iy4hz3vEWAhQqjPdMVSV/72znSIblq EQdjZ8g0TFZ9MAjGVVR7xA3TiLdb71NCDmBPi4F1onJi25KFpEWeOdsD9gOwskfpNJK/ 8AtJ1Jp1sJOEpxzse/bhak1mFkgiuTcUNI9N0FT6IsWoBIV6UQQKvCMC+Wb+xVOY+QEP XLyTAxkopWWXhqFQbhWRHPCdvpnofMOnqgSOBx3D65QiBiVFGROWXuunwUSqNo5ZnExh /d/Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=u+YODNTIK59Pwkfc8f4mJi0AUZuY8blff6kjsOBb+LM=; b=ziqJydRSZQwwsjcWiZepau7++AHAmy2NY2BpaxjluPpCqbShozdzL9e270pcN8Tbsy XVk+URxajnQaxgDNL6BbJtKWsKsDdFiV1NfKsr/cthNh3WE4C/FCEY3JPyApQY/bGITD u+85xwqnwIBwyQZ8BCUN0BZ/3/vdz9GTZkL0NCZbyiBie/y1tLJwInfDdczoOp4x7GJP sq0him8vVXhkyFOib4yh9G0E/zKrOjKY7DnReSpFi16fMA8xO4hoRWZU6dYmoQvCAaYP /2TrtBAwZdZz/CYkyiTiJQM8ieBjzk5969sls/l5r6oORSeGXRJaeDCF4CYmsd5E1rua Mx8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=CFH4FMU+; spf=pass (google.com: best guess record for 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 17si9014698ejz.46.2020.04.14.09.50.39; Tue, 14 Apr 2020 09:51:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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=@gmx.net header.s=badeba3b8450 header.b=CFH4FMU+; spf=pass (google.com: best guess record for 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 S2440735AbgDNPlS (ORCPT + 99 others); Tue, 14 Apr 2020 11:41:18 -0400 Received: from mout.gmx.net ([212.227.15.15]:59275 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440139AbgDNPjr (ORCPT ); Tue, 14 Apr 2020 11:39:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586878765; bh=+u2iRiz1u12jwTbT/cGxZTl9XtZZVJufsVEXnJf4nCA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=CFH4FMU+Ebu/ZmFQWHLJ36BFtaM1k5CfjGwExBxFPCxvf5RZxFgCQan2l2BMhZRn6 qPJcUZzw16V5U/gBADjIqZa1QWuyEBjXN6F3nweit2w6d3PfIhu7XVreuK/P0bgMkw 4VUMVAqwXsSzt1k5OMUPZB1AvG6OOvlsjAVNwigo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([83.52.229.196]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MGQnP-1jTcJN48Y1-00GsDx; Tue, 14 Apr 2020 17:39:25 +0200 From: Oscar Carter To: Forest Bond , Greg Kroah-Hartman Cc: Oscar Carter , Quentin Deslandes , Malcolm Priestley , Dan Carpenter , Amir Mahdi Ghorbanian , "John B. Wyatt IV" , Colin Ian King , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/5] staging: vt6656: Rebase all rejected patches Date: Tue, 14 Apr 2020 17:38:44 +0200 Message-Id: <20200414153849.5785-1-oscar.carter@gmx.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:QQb6EyE/aNv98TLvWbJYq/6pzAteOapf8MImXiw6u9mX4eiR0LC 0ow577hgTtLtpsj/eDMQ349AkQcYbujaXIyP7U+HLqjpsehlPbLf8sLccr2o3qwUiI5IWAM w0fjXDGPKt96fXr1SP/iXmNFxFbLS6/jSBsW3SunJzs5UPE50Bnof8x+81j25h77uvxdYUQ t7pH6SsP8Q5bFU3a/5Bdw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:iz1lzCIK/m4=:bWfixinPbNKztKuQWGd3FT eVDQm4uurnyxi9/oNJegL8NR9cPLO3zVVzr8Jz8WeRA5TO+oFzygoNRfPLbeHPnbL5+3mUPiy DWwm4k2zFBFX26CZ7m2xie4q3ZWzjysFH1K7G7og4F72RnKnFP3nR1i7+pGhq6AfvU6NsFTwl SE472oiqEYCS8XcomfJPyncQ+uib4BRmFuxGmvqZ8FTTrJresPLxuX/rzLVi8bZjDWs1UGtk/ 8ScMhq2oEvwk+d03hbLMGPuRuzJqd9+R8JOr1kFIF4TLeYbu3eSs65UuXCyYWCc0gqySDQZRx W1RWeSmVNC29oFVag0lbOYioWFpVFgBaJhlitZHSqjpqZ+Mly8WRBLoijI1zgPxHsEuRT9XJB 1BA/V/q4MgV3KlG02QzkVSudOYLeQ5g2cHCpU7nKBOHcL2fgv3WoYmhQS7WuZWJGWuvEYvev7 1qyW1WkM3T6d7Hr/HMnBhEDo1DS315hBziVejxz1tddZEbU7snk7c/H8v+9e8OH/Ggrm8z5mB zTYsps9I7uYMpIkO9ZW1XKHZFeHYVjGjAAUMCK6n0T2u0jC7ZH6S9NZ0d1vzG6zAoPFl2J9pC cGGbOPs7PRVdJftMw3pz9c0dj6H39foBf4Wlu7kjJlEoQReE/Z0bEC/cQsSWlf/iJPzrwRqlf rZrdHaS3zSlpPcYKTqN1QASVipGE1CClQAX2X18Cu9nk8aUtQpM49IpzVkQzJMX6iw2XjwOCG e56l/dnN6u/6I35McZ9XCoVc8gvQoG2hJesLt/km2Rm/1kTnn7LMvljDiNK9tC2nt0sSkC28s PxDO6GbW6iB+fLSZUCh3XQE2zyif3Og8yRHrPIFky/8ry4YQGAd2BzfQvzOPmyQH1XIroXUe8 newM+78eO4yN9Ky2x4cSJ/pQ7rJVqHvuZvUhV0n4gZytffaSN7s5hIKrYc2ZfVLnpJFMwWB4z SyCtw/w48ImNh2ItmQ832yvmzL3cH3Hdr+9FWqiz5gLMYbX/EOLO/WP0/JqmhRGqT4Hi2Of6p Z6POK0MeDlFC86B1j3v5NYOUK8LcoBLfiOwus65Y8U71lG0/V96BlbHbvrsPFKF38oDY0MaT9 S7pNr1dpCu1KB7D4q0A0F/DpROom9P+sPLZ3/pDtGF5D0MllIN3KUqIHBYIDJUPQJLNCAFyRm 5JFX/7Qd+sais7ocm66Ru5gN5FKNl58EW57mnRk5J8sifqPHcfkXv2KB/yc78+/Nc+57ITLDJ fUifORz+xUJS6lP/q Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series makes a "rebase" of all the patches that were previously rejected because they did not apply. The first patch uses the error code returned by the vnt_control_out function as the returned value of the vnt_rf_write_embedded function instead of a boolean value. This way, the return value is an error code. Also, fix all the vnt_rf_write_embedded calls accordingly. The second patch uses the BIT() macro instead of the bit left shift operator. The third patch use the define RATE_11M present in the file "device.h" instead of the magic number 3. The fourth patch creates a constant array with the values of the "phy->signal" variable for every rate and makes a refactor of the assignment of this variable. The fifth path takes out the "phy->service" assignment from the if-else statement due to it's the same for the two branches. Oscar Carter (5): staging: vt6656: Return error code in vnt_rf_write_embedded function staging: vt6656: Use BIT() macro instead of bit shift operator staging: vt6656: Use define instead of magic number for tx_rate staging: vt6656: Refactor the assignment of the phy->signal variable staging: vt6656: Remove duplicate code for the phy->service assignment drivers/staging/vt6656/baseband.c | 111 ++++++++---------------------- drivers/staging/vt6656/card.c | 4 +- drivers/staging/vt6656/rf.c | 99 ++++++++++++++++---------- 3 files changed, 95 insertions(+), 119 deletions(-) =2D- 2.20.1