From patchwork Thu Aug 29 10:49:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 172572 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2037073ily; Thu, 29 Aug 2019 03:50:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqzK/Z2nNZQa93kS+2/ZU/pUA9divDIRN75oIBgIbGPZCoN+ESaKTa3GU+99jZbEzO9vnq06 X-Received: by 2002:a63:4562:: with SMTP id u34mr7565035pgk.288.1567075810542; Thu, 29 Aug 2019 03:50:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567075810; cv=none; d=google.com; s=arc-20160816; b=cwoyaqrmmVdEJZsEtyO5A4iSQiG70QrjLcADeaK4P0C1LcRaGvqlP2Csfdb8cfHpfw gyQDebw5OYgC28tyX4XtbpZn8hTFl+ZUE4h8nk2/FmgRP4bpu/UYWx9PVvFBAQTBscGS qyRf/VH/BVYfAtQPkB3HmCQ6Nt6FyFScrg/ViW2ofJwXjUsBbcD/pzUTANYQehY0tdZv LyhGdW3dpU15VNJ67d/Xp9sUQB6boZk7WQMaiEJC91lTJDOIv3+ZRIySY/wrSE+hKwow lyflCiuxyR+iwGemeBY1nzZtKagggkbr/Hr6Vw6ddVmv5BNaOjgHAJRNp4cEkmgcRr3a PzUA== 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:dkim-signature:dkim-filter; bh=mN61Fbu00XTQIXCA2V1aTp6gNwYlWshj6x9afbCTh5c=; b=HO2IVpwawiG3eiAEHsD37Mrp/QRFzQHsbq08ZbQceOrnNA8Vz0QegyQjoXrcfYWLpH 4gmM/s2So8uAeEqCAewd8+CZmhi6ss4y2eWb4KxIiSvCP/g3c4zYdiFtKoHn/foQAsbb cTRAF63znlrM1rFqojMsADbfFG4ksOpfxx/1chna9U/jkPIFuDRddcqYoSChJz3fgdrM BP2VispCy7BW9/kLDBdg7jAUYD9rA/8dLp9j98XiM92kqngnUu1GOBpW9wMsZXuuTJAc Cry7QYaqtHGkBbZGUG6NY1bIvH04Y04QHTqwz2ha7T2BL1yVTG7YznvbrIye6/KGkIhL XAJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=TidcLSDR; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-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 31si1666385plz.62.2019.08.29.03.50.10; Thu, 29 Aug 2019 03:50:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=TidcLSDR; spf=pass (google.com: best guess record for domain of linux-mmc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-mmc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726990AbfH2KuJ (ORCPT + 5 others); Thu, 29 Aug 2019 06:50:09 -0400 Received: from conuserg-12.nifty.com ([210.131.2.79]:17271 "EHLO conuserg-12.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726950AbfH2KuJ (ORCPT ); Thu, 29 Aug 2019 06:50:09 -0400 X-Greylist: delayed 84862 seconds by postgrey-1.27 at vger.kernel.org; Thu, 29 Aug 2019 06:50:08 EDT Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-12.nifty.com with ESMTP id x7TAnTog013730; Thu, 29 Aug 2019 19:49:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-12.nifty.com x7TAnTog013730 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1567075772; bh=mN61Fbu00XTQIXCA2V1aTp6gNwYlWshj6x9afbCTh5c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TidcLSDRKzOZkpVzOluSTBv43i57lTHVfDqOFA489hXt/kuWoCqcLidLjb/E9E81e sUGEb9yFmWosleb2DfiSz+xxg1S3Ui33G3YcqDa7YgH2/Dp3FdxfCd4cn5704BPOMK qixixQSItz0KKtDyPKWUzgQ70Cu9q/V7zOHMBd+FLllBc8plMnL3N8Qiq9UnpB8OgB uWL5V2iGrODcG06Mh5+y/FC2zBSngvKGinmlFrmMkKJDWLfoZiSMQrmNbcDY4H4V6j 57Evyga/0JSItxsH6E3JTriBJ+Oz1TbnVh8xZK4B+HmRnwhMUt0xSrFTSnPWOZ8c0o /ru1uFXAqb/ag== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-mmc@vger.kernel.org, Adrian Hunter , Ulf Hansson Cc: Piotr Sroka , Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH 2/3] mmc: sdhci: constify references of parameters to __sdhci_read_caps() Date: Thu, 29 Aug 2019 19:49:27 +0900 Message-Id: <20190829104928.27404-2-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190829104928.27404-1-yamada.masahiro@socionext.com> References: <20190829104928.27404-1-yamada.masahiro@socionext.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org __sdhci_read_caps() does not modify *ver, *caps, or *caps1. Probably, the caller of this function will want to constifythe parameters passed in. Signed-off-by: Masahiro Yamada --- drivers/mmc/host/sdhci.c | 3 ++- drivers/mmc/host/sdhci.h | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index a5dc5aae973e..08cc0792c174 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3565,7 +3565,8 @@ static int sdhci_set_dma_mask(struct sdhci_host *host) return ret; } -void __sdhci_read_caps(struct sdhci_host *host, u16 *ver, u32 *caps, u32 *caps1) +void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver, + const u32 *caps, const u32 *caps1) { u16 v; u64 dt_caps_mask = 0; diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h index 902f855efe8f..81e23784475a 100644 --- a/drivers/mmc/host/sdhci.h +++ b/drivers/mmc/host/sdhci.h @@ -738,8 +738,8 @@ static inline void *sdhci_priv(struct sdhci_host *host) } void sdhci_card_detect(struct sdhci_host *host); -void __sdhci_read_caps(struct sdhci_host *host, u16 *ver, u32 *caps, - u32 *caps1); +void __sdhci_read_caps(struct sdhci_host *host, const u16 *ver, + const u32 *caps, const u32 *caps1); int sdhci_setup_host(struct sdhci_host *host); void sdhci_cleanup_host(struct sdhci_host *host); int __sdhci_add_host(struct sdhci_host *host);