Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1968075imd; Sat, 27 Oct 2018 23:32:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5f6RzciOfvepMJ946UFXzbyStS20KEfK/HTVfUJFv0EEaKggSzH4KMYV/KmGUXRHmnO75i0 X-Received: by 2002:a62:5f05:: with SMTP id t5-v6mr10113380pfb.223.1540708342946; Sat, 27 Oct 2018 23:32:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540708342; cv=none; d=google.com; s=arc-20160816; b=AJ56k6wnAI5uCX84FYEUOKQaMyD/YmkbwNJECjs1ih3vSV7n/GTYKP9uLOipgO2Njm NPQ9C0fQucOarhQ44t2mYvW7JHRi2N7o5KMxN8lxwpHG8IbTIN4X/Tp612Ol2buMd5lA synG/3/RJzD6h94qT5yoTuXhLSxGtJelom2/URdXGguuvKmpXGApOyZbUhY42sI7ECGe yTjnN/P7aGhSPAlu4xi9ASMuiSylvXRtrqqvvyZn0IlCUvtAyaGYw5N+VWLAC9qfKdep JI0FmVMbcaNN8NdjxP7223aVVe7b35O8ngB6a+EGzMT0Q6poQPLyM4Y8U1Tg1Ue6DXc4 g05g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Lg/8a4PtPVpN4yktoED2nDGcp6YI58PN6aNtEB5AqgU=; b=ly9vlsaFLvqjyKBzrf6f7wy6dcfk9A71wsNH11AXO2hf3d0las946e5dOEPKH0RRyV P9UrqC5tybgjQFGqYeGEo3ovH3HV80DrOBBcYKA8Xk4MUnfnyXjJzJQT7sjp9/GmODtg wE0aG8trcVQIRdLBZHlGWPlGjeRKNn4idBtJ2Z2AyNp5p8Ma5v9vSsr4ORYx03MtE8T6 Ly9DWTZU0ywtzWhTk8gxsyRST/SMtbdmjYpnOYLPTEOC+enyxY9K9TBX1PHypQotax5Q cM33XNZVeVZujnwY41Vj7p7ma6v3+YU2yRzT7hvAC+qMPAsu7rbbMMALo3655A69Zk/+ TRyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14-v6si11896568pgi.52.2018.10.27.23.31.54; Sat, 27 Oct 2018 23:32:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727743AbeJ1PPG (ORCPT + 99 others); Sun, 28 Oct 2018 11:15:06 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:49143 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726445AbeJ1PPG (ORCPT ); Sun, 28 Oct 2018 11:15:06 -0400 X-IronPort-AV: E=Sophos;i="5.54,435,1534802400"; d="scan'208";a="283535952" Received: from palace.lip6.fr ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 28 Oct 2018 07:31:24 +0100 From: Julia Lawall To: Liam Girdwood Cc: kernel-janitors@vger.kernel.org, Mark Brown , Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: AMD: constify regulator_desc structure Date: Sun, 28 Oct 2018 06:56:08 +0100 Message-Id: <1540706168-30601-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The regulator_desc structure can be const as it is only passed as the second argument of devm_regulator_register and the corresponding parameter is declared as const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- sound/soc/amd/acp-da7219-max98357a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/amd/acp-da7219-max98357a.c b/sound/soc/amd/acp-da7219-max98357a.c index 3f813ea5210a..a5daad973ce5 100644 --- a/sound/soc/amd/acp-da7219-max98357a.c +++ b/sound/soc/amd/acp-da7219-max98357a.c @@ -403,7 +403,7 @@ static struct regulator_config acp_da7219_cfg = { static struct regulator_ops acp_da7219_ops = { }; -static struct regulator_desc acp_da7219_desc = { +static const struct regulator_desc acp_da7219_desc = { .name = "reg-fixed-1.8V", .type = REGULATOR_VOLTAGE, .owner = THIS_MODULE,