From patchwork Tue Oct 25 14:39:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9394925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 544426077F for ; Tue, 25 Oct 2016 15:40:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4498025D91 for ; Tue, 25 Oct 2016 15:40:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3444D295F9; Tue, 25 Oct 2016 15:40:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0E7A25D91 for ; Tue, 25 Oct 2016 15:40:45 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A0244266F18; Tue, 25 Oct 2016 17:40:44 +0200 (CEST) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 9D6C6266F52; Tue, 25 Oct 2016 17:38:18 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 9D1B426686F; Tue, 25 Oct 2016 16:40:06 +0200 (CEST) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by alsa0.perex.cz (Postfix) with ESMTP id 3AA6F2665B1 for ; Tue, 25 Oct 2016 16:39:59 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id s8so19846617pfj.2 for ; Tue, 25 Oct 2016 07:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ZYe8kMtHluin722XcO5ol8JOCTGUw0h7EeqVNCnlfu4=; b=AHRk6ldeN/jVBEXSr9ejBt0s9TszdzCYt7Bt5clZlpCXaPn7p+TV2UvQzQGaSA8fYy RNy+srrQiP8BBQloMf0PV4e6NN70h/8byZk4tVIudQCZpiY3Yr9ovJZFpg0f2jjOdfUM NI0RaiUtUKr74KeNIlR+RGt+4qqL5FxyPv1STRWgOiHOmC2D323KnDvWbiRO8z7I2pcd 69KV6VG/ND5KNiQPrYLhgG9/AvSzka0Anvu/qPRGjynJPps52vcEqO5/WyO20Kb38E/B vxiSd6U7sZXRB3AqPGz9n0lh0aRTR1zsUX98hWPtYmeH5jPAtmVSmU8ISFs+l03E5ypC F05A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZYe8kMtHluin722XcO5ol8JOCTGUw0h7EeqVNCnlfu4=; b=Qxl2WghAC0TNV0avaNw+6DEVItdkQMrSlwO908FIOzKipmT0hrcQb0CIgFrCNAeMIL tcF6wnsGfSj3/SJ1abwjaRxzLtwKvxvvl+YFkjER33Q1FhfeKuSfhMy/nB1JQlMtxUrC S4+Lp4FKnKyqtKMiWzEXlkdd3DmHvSkx8PkVeTva2Ncr1LxpFmoEGza99LJ5u9hFxsIV LKIJGIskNATiHC4ril+s+aEkOkB6FCNMS6kAHYb9yVpedQYBBkn5eDh979fvr0VYGX7L hJJIp2RTAH1RZ6O/xxSlwesF1HMxwYhotLniF18y9iM/4OOusDhXgeTUugXNar2ilqdC KYVw== X-Gm-Message-State: ABUngvctm4/Wt83Uq8Ff5X17F4fLcdoZAqTJJtubsOK/ufq+IYWjEy2HWHRiRFQHspjF8w== X-Received: by 10.99.105.72 with SMTP id e69mr33232191pgc.158.1477406398796; Tue, 25 Oct 2016 07:39:58 -0700 (PDT) Received: from localhost.localdomain ([60.245.65.112]) by smtp.gmail.com with ESMTPSA id wc6sm34105974pab.47.2016.10.25.07.39.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Oct 2016 07:39:58 -0700 (PDT) From: Axel Lin To: Mark Brown Date: Tue, 25 Oct 2016 22:39:36 +0800 Message-Id: <1477406376-16054-1-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 Cc: Brian Austin , alsa-devel@alsa-project.org, Axel Lin , Liam Girdwood , Paul Handrigan Subject: [alsa-devel] [PATCH] ASoC: cs35l34: Remove CS35L34_CHIP_ID from cs35l34_readable_register X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP CS35L34_CHIP_ID is not a register address, it's the value read from CS35L34_DEVID_AB/CD/E registers. Signed-off-by: Axel Lin --- sound/soc/codecs/cs35l34.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/codecs/cs35l34.c b/sound/soc/codecs/cs35l34.c index 4045383..e0f672a 100644 --- a/sound/soc/codecs/cs35l34.c +++ b/sound/soc/codecs/cs35l34.c @@ -145,7 +145,6 @@ static bool cs35l34_volatile_register(struct device *dev, unsigned int reg) static bool cs35l34_readable_register(struct device *dev, unsigned int reg) { switch (reg) { - case CS35L34_CHIP_ID: case CS35L34_DEVID_AB: case CS35L34_DEVID_CD: case CS35L34_DEVID_E: