From patchwork Wed Dec 30 16:39:34 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 7934191 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id DE8D7BEEED for ; Wed, 30 Dec 2015 16:46:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 10E8F202EB for ; Wed, 30 Dec 2015 16:46:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 227EE202FE for ; Wed, 30 Dec 2015 16:46:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754712AbbL3Qqq (ORCPT ); Wed, 30 Dec 2015 11:46:46 -0500 Received: from mail-wm0-f53.google.com ([74.125.82.53]:38038 "EHLO mail-wm0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753222AbbL3Qqn (ORCPT ); Wed, 30 Dec 2015 11:46:43 -0500 Received: by mail-wm0-f53.google.com with SMTP id b14so55517975wmb.1 for ; Wed, 30 Dec 2015 08:46:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:subject:to:cc:message-id:date:user-agent:mime-version :content-type:content-transfer-encoding; bh=oSly4FaS6UpHe7b/KI+MNoGDL27L9uNxM9qYt2kJOx0=; b=Mel+5rlEdFCyG5Lx6cgJUQR1SSEhAhPOM2kqTm+Qw65s7ce3g7Qc9HHEFTJUTUgYII lPeIVHLGN0CslngLziXco0/8uU+OS67cYSaSTmg9vtvWn4RE5OfGYkVP06KsqOCxdF/W XVwLdNopV2Y3GgMZJylTmENO7vg60Q+L66nKv7lWsyXrgKiLBeEUyGQTraidm28byA4c yAE7y7Z6PFb207lccL8w0tLpUgGureRY34SxrD4Hs49puFCMEzNhOeR91CRFaHg1ZII+ G5h5kvRPcN+eWl9cuUT0GL1S3cm9kYGwPmL8YXu2BshpkxCW4nOxQieCDfapkR0kYDKs vPLQ== X-Received: by 10.194.23.33 with SMTP id j1mr70575383wjf.4.1451494002747; Wed, 30 Dec 2015 08:46:42 -0800 (PST) Received: from ?IPv6:2003:62:5f55:ba00:84bb:b7f:fe67:66b9? (p200300625F55BA0084BB0B7FFE6766B9.dip0.t-ipconnect.de. [2003:62:5f55:ba00:84bb:b7f:fe67:66b9]) by smtp.googlemail.com with ESMTPSA id v82sm40936994wmv.12.2015.12.30.08.46.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Dec 2015 08:46:42 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 02/16] media: rc: nuvoton-cir: simplify nvt_select_logical_ dev To: Mauro Carvalho Chehab Cc: linux-media@vger.kernel.org Message-ID: <568408C6.3040508@gmail.com> Date: Wed, 30 Dec 2015 17:39:34 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use nvt_cr_write to simplify nvt_select_logical_ dev. Signed-off-by: Heiner Kallweit --- drivers/media/rc/nuvoton-cir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/rc/nuvoton-cir.c b/drivers/media/rc/nuvoton-cir.c index 62c82c5..2539d4f 100644 --- a/drivers/media/rc/nuvoton-cir.c +++ b/drivers/media/rc/nuvoton-cir.c @@ -107,8 +107,7 @@ static inline void nvt_efm_disable(struct nvt_dev *nvt) */ static inline void nvt_select_logical_dev(struct nvt_dev *nvt, u8 ldev) { - outb(CR_LOGICAL_DEV_SEL, nvt->cr_efir); - outb(ldev, nvt->cr_efdr); + nvt_cr_write(nvt, ldev, CR_LOGICAL_DEV_SEL); } /* write val to cir config register */