Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2278102ybl; Thu, 29 Aug 2019 06:12:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqy13vRdMekfqo+XJn4U+/KJHgoNb1ntGhzQj1iSzULezxGmUmFbDNkd26DMeC8IjPJG/GWi X-Received: by 2002:a62:e516:: with SMTP id n22mr11435060pff.105.1567084331035; Thu, 29 Aug 2019 06:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567084331; cv=none; d=google.com; s=arc-20160816; b=ZhwsXjXM9LfnNk3LO/7su+AGfEgs8qzUmjarhKvVmAHTWn8Xb97QDS8DxupAuZxwE6 12FNqpOFQ60+7EeVU9iOTAbioHI6nqk8IcWRRNmPgryhNxG2H3VycvFdSUdv+NMjNVL3 uCxQ9OxmM0mYyjSkRfXGOf/2GO1Ah7t5rt+tZY4u7ZuaW/vYtQQiBhMFAuA2j62PG85d rwZaoftthPau5Tu3byEnjWvQsD0suTLIOJMhSM1oNdrNmWx6S8hHZUfBQ+0EZ6RGAqgE tkvtY3q9G91ZKYof3bN4IF4xrz/HKeMrGoY15Lfiu8/PAuHZua9ii2pIPNzsGb+BlZZr CIhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject; bh=wsC8Yeb0VkB9tty4ln1SCiNRRLtgvk7peFUROJgSrBM=; b=IwgZvo7WAK7eoPGA5cJksmIxNmH0fQdoJWrfQ3lNvoCa1xvI4LZDn92FecQBlPlvWU INTx7fFk14nVsGyf3Lr6Uo9kJw+EElh31TKIZU/HqkUqI0G4A7I53P86rjJGA0jq0Vsm w8jSjaHsIu3LsR0fRs5/3p4Th7mdq+PX2sSicnoj0Wesl8bcgdWKDrGzld3ZQ2QxxA9a uCprRmw4e5gnC/tNGoCaxOl7MCzpmgg1hCtFI+qmsw75ptTu3rlQUNVuenqqO/x9Bp4b F+9K2kofesvSkh9tmQn9o5Or1H3FhjWxXHAE6/Qwk63hV7KbRHB1eV8e6D9UyrE8Ta7C 3Rng== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h30si2142086pjb.45.2019.08.29.06.11.53; Thu, 29 Aug 2019 06:12:11 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727388AbfH2NKr (ORCPT + 99 others); Thu, 29 Aug 2019 09:10:47 -0400 Received: from mga17.intel.com ([192.55.52.151]:11999 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727315AbfH2NKq (ORCPT ); Thu, 29 Aug 2019 09:10:46 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2019 06:10:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,443,1559545200"; d="scan'208";a="197802055" Received: from ahunter-desktop.fi.intel.com (HELO [10.237.72.66]) ([10.237.72.66]) by fmsmga001.fm.intel.com with ESMTP; 29 Aug 2019 06:10:38 -0700 Subject: Re: [PATCH 2/3] mmc: sdhci: constify references of parameters to __sdhci_read_caps() To: Masahiro Yamada , linux-mmc@vger.kernel.org, Ulf Hansson Cc: Piotr Sroka , linux-kernel@vger.kernel.org References: <20190829104928.27404-1-yamada.masahiro@socionext.com> <20190829104928.27404-2-yamada.masahiro@socionext.com> From: Adrian Hunter Organization: Intel Finland Oy, Registered Address: PL 281, 00181 Helsinki, Business Identity Code: 0357606 - 4, Domiciled in Helsinki Message-ID: Date: Thu, 29 Aug 2019 16:09:33 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190829104928.27404-2-yamada.masahiro@socionext.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/08/19 1:49 PM, Masahiro Yamada wrote: > __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 Acked-by: Adrian Hunter > --- > > 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); >