From patchwork Sat Aug 1 02:04:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 6921591 Return-Path: X-Original-To: patchwork-alsa-devel@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 249AEC05AC for ; Sat, 1 Aug 2015 02:05:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FEDE2055D for ; Sat, 1 Aug 2015 02:05:12 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id CA0DC2054B for ; Sat, 1 Aug 2015 02:05:10 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 51DBA2615FC; Sat, 1 Aug 2015 04:05:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 3453B261600; Sat, 1 Aug 2015 04:05:06 +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 449AF261703; Sat, 1 Aug 2015 04:05:05 +0200 (CEST) Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by alsa0.perex.cz (Postfix) with ESMTP id 158CF2615FC for ; Sat, 1 Aug 2015 04:04:58 +0200 (CEST) Received: by pachj5 with SMTP id hj5so49344073pac.3 for ; Fri, 31 Jul 2015 19:04:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-type:mime-version:content-transfer-encoding; bh=QHhia+79rklYO+qsCHUzdkv7qLJIqZo59xVncty2UGw=; b=hQ1fUmfcOpgwaTln8kYrYIeCzisuCyZwpJfKIImizSWs5iQlsFCCKQQPBGQHYLvdpS zORr+BhXQCKy/xkRXTB3616nYuhihDDbSiQzqyHrTKA88DAJbOmDKnM+ssKFl3Pw1XzU XEtsrmEmMx/FtDnxalQddZlT0wZ/eh7adadS8TfjTni7KpX331YbXBfWbJiy8JIjQNS2 nk5Rq40FMgCq5KFg90FUvbntw6lVxktX8rCjpiSgEy2jkbi/UU3ebVSqKmY7Zd2snKcY XT3hVKEBxJA12/HMhV81LaQ7us+b0AzMpw04iM7qVu6KV+XbjWe19Xu1HpmsMjelj0q1 o6iA== X-Gm-Message-State: ALoCoQlxTQOmEWg5j30/nyg7gtc1K0WdzTi4BnpwFY5qBcN8P1FXYUIPpJz2tbvhO4TygLaUI8m9 X-Received: by 10.68.233.132 with SMTP id tw4mr1421338pbc.166.1438394697373; Fri, 31 Jul 2015 19:04:57 -0700 (PDT) Received: from phoenix.local (36-239-222-188.dynamic-ip.hinet.net. [36.239.222.188]) by smtp.gmail.com with ESMTPSA id k5sm9823182pda.34.2015.07.31.19.04.54 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jul 2015 19:04:56 -0700 (PDT) Message-ID: <1438394692.6442.2.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Sat, 01 Aug 2015 10:04:52 +0800 In-Reply-To: <1438394622.6442.1.camel@ingics.com> References: <1438394622.6442.1.camel@ingics.com> X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Cc: Charles Keepax , patches@opensource.wolfsonmicro.com, Liam Girdwood , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH 2/2] ASoC: wm8753: Drop wm8753_writeable function 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: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP When .max_register is set and .writeable_reg is not implement, registers between 0 and .max_register are writeable. This is the same as current implementation of wm8753_writeable(), so just drop implementation for .writeable_reg callback. Signed-off-by: Axel Lin Acked-by: Charles Keepax --- sound/soc/codecs/wm8753.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c index b5e50ff..ab1b6b8 100644 --- a/sound/soc/codecs/wm8753.c +++ b/sound/soc/codecs/wm8753.c @@ -138,11 +138,6 @@ static bool wm8753_volatile(struct device *dev, unsigned int reg) return reg == WM8753_RESET; } -static bool wm8753_writeable(struct device *dev, unsigned int reg) -{ - return reg <= WM8753_ADCTL2; -} - /* codec private data */ struct wm8753_priv { struct regmap *regmap; @@ -1510,7 +1505,6 @@ static const struct regmap_config wm8753_regmap = { .val_bits = 9, .max_register = WM8753_ADCTL2, - .writeable_reg = wm8753_writeable, .volatile_reg = wm8753_volatile, .cache_type = REGCACHE_RBTREE,