Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp501236ybb; Fri, 10 Apr 2020 04:30:47 -0700 (PDT) X-Google-Smtp-Source: APiQypL09QhjjH6fyttBcRQTQO/Ef7BDuemtKiRam26WGhtzku5GtBD+yBTIPDLzq4YZFctZtZC3 X-Received: by 2002:a37:5e47:: with SMTP id s68mr3336416qkb.411.1586518247032; Fri, 10 Apr 2020 04:30:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586518247; cv=none; d=google.com; s=arc-20160816; b=NfimodoOJQHKlqD5OoEAuw5uBPVhZrH3SL/ZkaOZI/yTIPvGCtDUAzWM/LUmYADlCL PGvI7QB9013tUvalkPwcY800ozBJs8rNZ1NoJIOsgcxni56FddjjKeQtGKQ0I3jPE7gc CF5dHsG9WhUf0cEWg1DEfBHvVc6YcCGnSaxWZh9uJRyUltkH4UryMR6FThcLKmNOX+W+ hZSVGx6jEHf0xyHSV2vjZwC4bWhHy44344JDe7WLkeYuA/sLTUNBrtVw1Zf0/Eq53cuK qRIB3qxmUTLhgD4qxaQBuY67dlIWiB7/rmDi7U4S+HtW4l9bmPyekegD5+HQ8x7yBXbG rBiA== 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=WBGyD+n6dNzFHskvhW44SfDeZw4dJrpw/+jUFdhPVcg=; b=Sx1OV6dP0TzaKY6+DN6u6adhE65OEf+3Q6TXFPlG3X3pXuhcaml0eXKSyzbkfHdwtA 7WPxw19sj/rH6ihfxXtyK3fPzbQJ5nXxbErbhnGpnRgUmdvLSbBJmbQmip9ydQa79GCB ipkFwzqop3uyXX/p6C5ids5rJMHSX8oNZyREtnnibn29q8iVuesnyZnEwvpN+QEkkzQB +lLNFNXPCwTOM7N+mOJRtNP5En3ma5savA7gt3oqGNAgryC9HESiWX3imqhb9pRRPS7i AKwQt+NXOkgWtNZs5SLDn4MJWEfcMeO/TWaX3m+z6L2OSrtvD2cCAlNyAhSkSdAfV72C lvmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=WaLlXrog; 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 i7si843068qvo.36.2020.04.10.04.30.32; Fri, 10 Apr 2020 04:30:46 -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=WaLlXrog; 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 S1726191AbgDJL3L (ORCPT + 99 others); Fri, 10 Apr 2020 07:29:11 -0400 Received: from mout.gmx.net ([212.227.15.18]:49621 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725913AbgDJL3L (ORCPT ); Fri, 10 Apr 2020 07:29:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586518145; bh=KbQ7MPUE2YWxLVrSNpDqZD3CJFhUoxbEHNi7PhcLaU8=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=WaLlXroguEeX5vqEZF4wvHf3JPKiJUpXzCFL4a1WEzQIqEeIePoQWYSWWPo52ws5P DyNolIyD1oORSPOlVQ4kUoc3wfNU2jvmTAsTLoD936Sb//B1h68vJirfghCAOLfWkI Te9aLwKOtossjv+O2p6I3oNAUo581Knfiwz7efF8= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([83.52.229.196]) by mail.gmx.com (mrgmx005 [212.227.17.184]) with ESMTPSA (Nemesis) id 1MYeMj-1jjdw33Kwl-00Vcuh; Fri, 10 Apr 2020 13:29:05 +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 0/2] staging: vt6656: Refactor the vnt_get_phy_field function Date: Fri, 10 Apr 2020 13:28:32 +0200 Message-Id: <20200410112834.17490-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:b+EMgwckRiVQ1Vd8pSMIrXcnbE3ZWzweCVRszrEMKT7dLf/SSui 1tOBlRAVsLgxAbVjonJKn2ENZpv5SyJ/uRYMmnKlvynVVoq/8jGabI+CGurs6AN3S+/VWFO XbZ620WW0CLPVH2gsrRGtnnPdaYs4cbf7tOCwQVz1sYuTI2luxOJdmZ+AguJiLOjZdWURLb 5BUG+zAhwOongyV6KYqJA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:pEhguabj12U=:a+yZvb6Xt/hcyn60TYLhoU y+2cU/xqP+mQEMdCd3cSf5PMNKPiCrFSvMkM8b5Y8FMfjgT7czovElEs0ChM7y+qCeOvcEXVL svfuIdzGnNQ1/1rdwRalqztcXohPuKBUQnxcwUxstwlim5b0kh4KHYUpIvRAqfOyNzkMcr7Lf AIuxePzQSd9XmNXLGX8S3im6R1d+lNX/OBPbIfR2wEmgx/PyKSEsrFQs+FJp29HUiW0+afAmq cPjaaCE21G07JoIIDHJBD1ddFgnvZbKZJUrQA47HJlrwT6Z1Lqo8Xd+tUvi5kPcUMnXV6FUio dRPAwwLv9jYPAYA43PZzy4ZsDzJ0GuUrxTGGUubUxsPDrs3kNEiCyhzHrB5O3CwMJHGC43RUG 91gDrxi0dSQka+V8daqnsZgiI89w8gP7jQlSN+WzJ5hIzMBNsvgMY1DJn7ow1LL2iYmCrUW1y +XQddpKx91wr3amHY8OsvX13DVLBqQ3Z4acIzms7koU3tCxYWqDb6VYWk6D2xRMf92XU33v8W +nFTXsdEgj6Zp8lgWoSDottQaGpXY4H3ekXxYF70R6Zo0wXsUiJe/cfVmZQ2zdpAg/SjpXYM8 eg/qPzdizHMeev4w7CQs1E/XrxCVp/uU57dKc0DZcXsXYaVYqaKrrcnVfFAZZCwGp1hQTywJ9 BgR5UpLjcAVcpycNRoB1DxHtDtOzHYBtZo1PTVeGrFxpbxmAvsYBSRdCs6HE0zM5djT2TIw4u piSn8r1apQjPGA2WDozjcvlKQgp50bNa++PksiYVDAdl6gQBjWPTa+h+gE+TQYut3rI7e9950 AjDtWigqt08QvDUtkjwZ8d6wMxWbP3N1TMC0cqqe5AleY92NS+fCijTWC3HXO7R6PKP4iREoy Nl788lB4A5Vdwfz7ZN7ZXBAPftQtTKy6zw9LT26p5v5vrRHUSX8+SKi0ja+jWaB0guzsClfuE XFynU8E1EDopfUA4iVHCSLoWAXfVErGRQEvf4Jxu4fxy8MG4IcA6TNP8TRhJVN/2fLj1269OW WkF6z3rcXHxOUmKGpmXYWGBTnXKwPP4FKSfA9nF5goD9CRP3+gk46Ib5mkDs0c4TSBFQfgyLp 3+FJqaNBF/COVfxLwcP42TmMLAZK8KfX8i6johsl0qp6HZ0CZ5C8Y7qZzD5IxswuhYw0JwgbE s5PFnqxb+hgkjxL3rNlWafMWz1N4Fs/kiplKrtwfL20ahzrfT6s+KmGBID5cd+IP3F80YGhFo uNk7Pc9ZK29VRtCwh Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series makes a refactor of the vnt_get_phy_field function through two patches. The first one refactors the assignment of the "phy->signal" variable using a constant array with the correct values for every rate. The second patch removes duplicate code for the assignment of the "phy->service" variable by putting it outside the if-else statement due to it's the same for the two branches. Oscar Carter (2): 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 | 104 +++++++----------------------- 1 file changed, 22 insertions(+), 82 deletions(-) =2D- 2.20.1