From patchwork Thu Oct 4 18:22:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 1547851 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 9AE74DFFCF for ; Thu, 4 Oct 2012 18:23:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751953Ab2JDSXG (ORCPT ); Thu, 4 Oct 2012 14:23:06 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:61323 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751715Ab2JDSXE (ORCPT ); Thu, 4 Oct 2012 14:23:04 -0400 Received: by mail-bk0-f46.google.com with SMTP id jk13so493884bkc.19 for ; Thu, 04 Oct 2012 11:23:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=Nnm3MldCwZ1mWVJLhg7j55tzXkdP8Bm7BNRY6QH8Ptw=; b=AI/1TqyavlQMyEd0YsEt/RuDQses4yA9l2bPsro6qi2IDv2J+YusE9HUweRUVezUBO hGDf/JV2a19qJE9YiOEM7MIqVIHybXDiUOgwv1KKOF6SMIy2AlZEbmZG4hYQ+8ZiyM+o 8q3+zcpdVCSHd8gDGAW9H4MgFboWfs4+S+mQonwXi3Wg9JP2ie7FnkTaXTMBkdPcyoAl ugL150wKhJlmN34kqZOeMC+CIjvftJL8g3s9qfLZmw0ZPTuPoHiWgNzfRpUywmSSkVAL 3IAIf94DXDSgYpCVNf51zA9d63vAxXvdQGsMlkO16W+TRXjQkyJcZZ4mpDvSY1msr5Jg UApw== Received: by 10.204.5.151 with SMTP id 23mr2086111bkv.3.1349374984070; Thu, 04 Oct 2012 11:23:04 -0700 (PDT) Received: from localhost.localdomain (p5DC79040.dip0.t-ipconnect.de. [93.199.144.64]) by mx.google.com with ESMTPS id fm5sm620970bkc.5.2012.10.04.11.23.02 (version=SSLv3 cipher=OTHER); Thu, 04 Oct 2012 11:23:03 -0700 (PDT) From: Martin Blumenstingl To: linux-media@vger.kernel.org Cc: Martin Blumenstingl Subject: [PATCH 2/2] drxk: Use the #define instead of hardcoded values. Date: Thu, 4 Oct 2012 20:22:55 +0200 Message-Id: <1349374975-5934-2-git-send-email-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 1.7.12.2 In-Reply-To: <1349374975-5934-1-git-send-email-martin.blumenstingl@googlemail.com> References: <1349374975-5934-1-git-send-email-martin.blumenstingl@googlemail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Signed-off-by: Martin Blumenstingl --- drivers/media/dvb-frontends/drxk_hard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/dvb-frontends/drxk_hard.c b/drivers/media/dvb-frontends/drxk_hard.c index 8b4c6d5..894b6eca 100644 --- a/drivers/media/dvb-frontends/drxk_hard.c +++ b/drivers/media/dvb-frontends/drxk_hard.c @@ -921,7 +921,7 @@ static int GetDeviceCapabilities(struct drxk_state *state) status = write16(state, SCU_RAM_GPIO__A, SCU_RAM_GPIO_HW_LOCK_IND_DISABLE); if (status < 0) goto error; - status = write16(state, SIO_TOP_COMM_KEY__A, 0xFABA); + status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY); if (status < 0) goto error; status = read16(state, SIO_PDR_OHW_CFG__A, &sioPdrOhwCfg); @@ -1217,7 +1217,7 @@ static int MPEGTSConfigurePins(struct drxk_state *state, bool mpegEnable) goto error; /* MPEG TS pad configuration */ - status = write16(state, SIO_TOP_COMM_KEY__A, 0xFABA); + status = write16(state, SIO_TOP_COMM_KEY__A, SIO_TOP_COMM_KEY_KEY); if (status < 0) goto error;