From patchwork Sat Feb 20 02:54:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 8365641 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 511D19F2F0 for ; Sat, 20 Feb 2016 02:54:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 95E2420585 for ; Sat, 20 Feb 2016 02:54:58 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 5FBB62057F for ; Sat, 20 Feb 2016 02:54:57 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5B691266AB8; Sat, 20 Feb 2016 03:54:56 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 965DF266AEB; Sat, 20 Feb 2016 03:54:46 +0100 (CET) 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 ED2BD266AB7; Sat, 20 Feb 2016 03:54:43 +0100 (CET) Received: from mail-pa0-f42.google.com (mail-pa0-f42.google.com [209.85.220.42]) by alsa0.perex.cz (Postfix) with ESMTP id 8FF67266B02 for ; Sat, 20 Feb 2016 03:54:16 +0100 (CET) Received: by mail-pa0-f42.google.com with SMTP id ho8so61410275pac.2 for ; Fri, 19 Feb 2016 18:54:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; bh=OBjM3pbRvIdLOz/GYECF2z9x/KGBqREjVZNU2Zooouw=; b=Q9bOU3htW0iqaj4Rgf4IOgrB9Du2dYM5XjOXnLTyAmztF/s8uMELsOfnU+CX8u58ep BwkMHBOah+AVXTVhgvgrRFs0/H4Ri3TT/hKywwhYX9qpnbr88lVGY2syeNH5uBgwqP0A QbC7oMX9r5RxIgudvRCcshW2dFaHKVevlpEzJBaQqGbc2sqRFu7ldoA+6rnsRlIoLM9i +T9yEs94/B3hSZ8aPSWs09h8dF0W2R/YS6n6qwJ5AwNSJfVpOTt4GtwqiXHl0qpvSIIP cieGnspmp6ERsrOG2XzjTiUoyuv3FycZ5YdxI+lK+irZ/Xfvmnw+O4+Rb6J2OUCoriLH QN2w== 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=OBjM3pbRvIdLOz/GYECF2z9x/KGBqREjVZNU2Zooouw=; b=Glgcx6nbu3/p5zSkBMB8fKDth8wSqOcDd8oy95nEuUhH9jss5xKESODkYG1Gapxpq0 ef+7ZE0q4FvmV3cedHBRbxkRjhfwyQK3M+JZIoD3jjX0GrqfyuKOCoI/feoz78/xyGN5 nd8e4XcmnMz532ZACPqxtX480+HH3pcnynXGvysiKtzrlUOOkg6gpfucUX3z5BS6TC44 3XD2XKE80kkV1GDxIxRKTPtyz/wIBJGINomM03b8h0cJOxrJVdYQcbU/e1VOg4dPrwSa TCyGd0WYWy/x2I+/J9OqmFrP1+Aq7s6sLRsKFNjjD1CYej2hYpV7x6m2/a1KcWyGM63k UBWQ== X-Gm-Message-State: AG10YOQu1E49ZJJBPY5+s/CPQ+Ezzx+zttOnIwy+7+8/fllJr50rrzTyr8EaBVEuQN6lxw== X-Received: by 10.66.222.101 with SMTP id ql5mr22838522pac.144.1455936855644; Fri, 19 Feb 2016 18:54:15 -0800 (PST) Received: from phoenix (218-164-27-154.dynamic.hinet.net. [218.164.27.154]) by smtp.gmail.com with ESMTPSA id n13sm20707702pfi.3.2016.02.19.18.54.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Feb 2016 18:54:14 -0800 (PST) Message-ID: <1455936851.19371.2.camel@ingics.com> From: Axel Lin To: Mark Brown Date: Sat, 20 Feb 2016 10:54:11 +0800 In-Reply-To: <1455936752.19371.0.camel@ingics.com> References: <1455936752.19371.0.camel@ingics.com> X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Cc: alsa-devel@alsa-project.org, Liam Girdwood , anish kumar Subject: [alsa-devel] [PATCH 3/3] ASoC: max9867: Constify max9867_reg and max9867_regmap 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 Signed-off-by: Axel Lin --- sound/soc/codecs/max9867.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/codecs/max9867.c b/sound/soc/codecs/max9867.c index 70b5406..ab7a94d 100755 --- a/sound/soc/codecs/max9867.c +++ b/sound/soc/codecs/max9867.c @@ -436,7 +436,7 @@ static bool max9867_volatile_register(struct device *dev, unsigned int reg) } } -static struct reg_default max9867_reg[] = { +static const struct reg_default max9867_reg[] = { { 0x04, 0x00 }, { 0x05, 0x00 }, { 0x06, 0x00 }, @@ -459,7 +459,7 @@ static struct reg_default max9867_reg[] = { { 0x17, 0x00 }, }; -static struct regmap_config max9867_regmap = { +static const struct regmap_config max9867_regmap = { .reg_bits = 8, .val_bits = 8, .max_register = MAX9867_REVISION,