Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2118957ybl; Thu, 29 Aug 2019 03:56:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0YwaDPmtin8UAZ5FpA4nt8QnVdUARDBivP+fwBnuGqRfuFO9tztKH73ezUX1jTu8BGYVm X-Received: by 2002:a63:101b:: with SMTP id f27mr7435351pgl.291.1567076199329; Thu, 29 Aug 2019 03:56:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567076199; cv=none; d=google.com; s=arc-20160816; b=YObPZ0g+xxoRB2GVL4+2WPcjx/bsKlwn5KiW+i5SEJ7I5DHOuFRPEfYLFAvOv9Mfi1 YsyDjzA8ibAuzy0c4qGga21uw3enurKPUEKxKCuMjkF48yO0oTFL0eaRxjZNy8Xm4GS9 E4y2xd5QMdWYkf6KqzvRag6qbkw78UuULSwkQ4KbJtqQNZat1SE83JBjB3nfMQTgf7rd ZJilBR+WFJ30bV5+yDzyShqyD5sQNUf2cbPT3CL1FoBByIRZDqQ/ObEJEScduTBW/1WC K81sPywEuFyG3dipfj209mmfdo02I2TbCaGOjomdiL56WedjCQEoKszm2EdBfrYVG9CE GjPw== 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=tU32UW4dLku4c/O2ZeskQLHWmPjKjm+U/NmxPUKpcoP53C3WQ9C6e19AYYOXIDXWDb SiobDma1LZBbSFCb50VP1jY5kYwrf6ODMmogrXqkuStJQUT9FpILtHgYtQ8Fv5jyoCbI QYgn81nxTKutmArpgXGOZ3I2vBMFxiJ0jycru+KUCUdQz+QsPx2OQfz27XRxkDJ47fF1 jjfnT3lusM7WfQo5sd45yjJAkt89gjNsV1WoEdS+Xm64RqU1aOVgjkGbv7NZRtw4XcG2 fcszQAQia6HbEii2ZRySYbE9yzphWchkiM3D7lMbEr3UiPoAngxEjISgXCESehNokb54 CxGg== 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-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 x20si1786218pjn.49.2019.08.29.03.56.24; Thu, 29 Aug 2019 03:56:39 -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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=TidcLSDR; 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 S1727294AbfH2KuK (ORCPT + 99 others); Thu, 29 Aug 2019 06:50:10 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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); -- 2.17.1