Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp1341794imd; Sat, 27 Oct 2018 07:12:02 -0700 (PDT) X-Google-Smtp-Source: AJdET5ffKRaHZjnoXCO4PMOsmpS80yijSBVYm06wwI7ThZ+H5K0f5YhSHsL9si11vzRObiUh4zsR X-Received: by 2002:a17:902:4025:: with SMTP id b34-v6mr3406466pld.318.1540649522328; Sat, 27 Oct 2018 07:12:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540649522; cv=none; d=google.com; s=arc-20160816; b=nAdd0Wid4L6hFhTXTCtRpTExZe9jGfDmXmiXMUgho+5FB44Fehe+B2ZUpZgk9FxFJ1 emHPdV2u9JjOByBOUbagY7qNqAsvaSeSmj02YmYr9Os2Yd1pPDtfDk0UdQJpSQK1IdQV SYql4Ctsc/mRzNqxzM+1qUl1KBrRr1ovYlUmgTSPsz4cty0ilvLL/tTWRM0wkl/kFhvl dz2SFCAM7TCYensrlXxBoRiXR5ZiSKFbVeabILsDG3qE60stHA3Ynsk8eMh0jlheR0tf L31dgrtA6icI9MFgxfdXb2CQ2lSQxJU3rILc1rXK5U7YyGnkciC7qH1ol4oE0Ni6NaIc 0XgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=g9fr/uIChtalpINhdAijdcxenxb8oh5eJ9olqLWPX5g=; b=Tq3fDT3frhiNuK/sQhDn6akB8zrzaynm4Mjin5G4v5HlNDfzrtCimNgQ6Lzmfwhuv1 up5NZMcWAR3q4iDFrB69tQkXGsX9a/fly5iwwT46mmlrwmealCcBJ3reOOMEcL76+aWO qdHvPmSxhIUPvufEznHD3Ug+SKciOu/y+cHjkMVHSm7hheHX5Yy0zgTxZriwSr3NdWX3 exsZ3a2bsoqAEZhtdmjDR4osVheqNsJxWQCqCSViEXMlAHMgs70GSPXancpGc5igeaPt 1kqBRGgQyCcAmSwfRTqJkFhowCugt68tSykcwuHUmhOMqh1YNZhlLblYyAq/B610CAbM TjCA== 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 i6-v6si14551901pgm.335.2018.10.27.07.11.47; Sat, 27 Oct 2018 07:12:02 -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 S1728737AbeJ0WvM (ORCPT + 99 others); Sat, 27 Oct 2018 18:51:12 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:29007 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728725AbeJ0WvM (ORCPT ); Sat, 27 Oct 2018 18:51:12 -0400 X-IronPort-AV: E=Sophos;i="5.54,432,1534802400"; d="scan'208";a="283512248" Received: from palace.rsr.lip6.fr (HELO palace.lip6.fr) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 27 Oct 2018 16:10:03 +0200 From: Julia Lawall To: Vinod Koul Cc: kernel-janitors@vger.kernel.org, Sanyog Kale , Pierre-Louis Bossart , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] soundwire: intel: constify snd_soc_dai_ops structures Date: Sat, 27 Oct 2018 15:34:42 +0200 Message-Id: <1540647284-26728-2-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1540647284-26728-1-git-send-email-Julia.Lawall@lip6.fr> References: <1540647284-26728-1-git-send-email-Julia.Lawall@lip6.fr> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The snd_soc_dai_ops structures are only stored in the ops field of a snd_soc_dai_driver structure, so make the snd_soc_dai_ops structures const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/soundwire/intel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soundwire/intel.c b/drivers/soundwire/intel.c index c5ee97ee7886..fd8d034cfec1 100644 --- a/drivers/soundwire/intel.c +++ b/drivers/soundwire/intel.c @@ -654,14 +654,14 @@ static int intel_pdm_set_sdw_stream(struct snd_soc_dai *dai, return cdns_set_sdw_stream(dai, stream, false, direction); } -static struct snd_soc_dai_ops intel_pcm_dai_ops = { +static const struct snd_soc_dai_ops intel_pcm_dai_ops = { .hw_params = intel_hw_params, .hw_free = intel_hw_free, .shutdown = sdw_cdns_shutdown, .set_sdw_stream = intel_pcm_set_sdw_stream, }; -static struct snd_soc_dai_ops intel_pdm_dai_ops = { +static const struct snd_soc_dai_ops intel_pdm_dai_ops = { .hw_params = intel_hw_params, .hw_free = intel_hw_free, .shutdown = sdw_cdns_shutdown,