Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2308861ybl; Thu, 29 Aug 2019 06:35:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyKiuM4WSI+/yK5PjQtJMeeeREd4fUNysS8JTPUx9py/74FelxOkiDUIeu6wIVTMHz0m+n X-Received: by 2002:a17:902:2be4:: with SMTP id l91mr9706709plb.140.1567085751737; Thu, 29 Aug 2019 06:35:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567085751; cv=none; d=google.com; s=arc-20160816; b=IlpfBPs8ERVLXSgxjNs4X6y0GowZChnPvfJ/gPOsFKm8I4QhD8rEyPAJVQ6+sVvjrq eBENuYhbgboeaDl9tAFUZYBm859cud/fkHqNMDZQOB4GAcfPTvKrBf/9IJnp1NzSkfM5 lgUu5DyVFiZ+qtA/fICmSy4U2b58L+e8AG0QRs0EH9ympfPJvC5cMyMG03AKlNbq4taa L8rSsvzosn49j0rjbWVwqEnnH02uLX/h8JNCp1628qrcDSmTkyMXAfUMjpwdUdKLrqh9 CUAkta0tp5EaDSp4h4dr8/UCZF4dquZHbCTZ808LiFaEeanYzh89YQynMxGrvAZE5uvn EaQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=myzI27sykV+zo5/dyKkwt+i0fBKy0tEQwbx8qgbiivk=; b=EgRy+ZIXLZ94J+6szp4DGuIzpwRMERmYgBIAfGUcIFG1w/t+rXoXp36/k7SCy9G/7P 6AZSXEnKkHDY77cvETwVGTEweZuXZZXr4EQ1JlzCgTwja9EyGyGQQCdwXwDF2ccNTqH/ PqZnWHJ2WPFg/Nn6Lr9PP2I9OMqzEG4dT9aZpeJyei0Ao5yp/OHT7/itXBUaCg5OmNSi irJaodxvSMW8yJNqch/t5hKxXeHSNWAZPIz7TJ+LL/XtbiAMg07+R6EY0Hs79QifsW1Y 3YezKHoTV9pF5l0q6oJi7EavuHvaJjprRLBSTe4vd7jp8Wdtz9Tn0V40TxKuOqaRKg+H ovEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N7M4UQV8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f59si1830862plf.220.2019.08.29.06.35.34; Thu, 29 Aug 2019 06:35:51 -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=@linaro.org header.s=google header.b=N7M4UQV8; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727417AbfH2Nej (ORCPT + 99 others); Thu, 29 Aug 2019 09:34:39 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:41377 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726950AbfH2Nei (ORCPT ); Thu, 29 Aug 2019 09:34:38 -0400 Received: by mail-ua1-f68.google.com with SMTP id x2so1146189uar.8 for ; Thu, 29 Aug 2019 06:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=myzI27sykV+zo5/dyKkwt+i0fBKy0tEQwbx8qgbiivk=; b=N7M4UQV8t0QuilwfFtdruFEzIG5shKxRkBaHaMgXjqwqA4fu/fILvPFr4feiK0lX1k 9ultv4ASPWMuzxE5OtXqSTXeVfSIUrpvvhKeQAurtn8rLZi8jQYqRO5rgTPqjkPpp5o4 ky1MBd6owGPYLDpDWvHnuDm1aSv6ArVxTHJyW/3znmEqusHW4zS1tlmZ8ZxlZXUty1Rf RfN+9eyc9I8qB26y84LtImsalRxNi3jEUy0JTY0ZY8sqiWRxcSs/921OaA7/F8jZIeEE C7ra4idz39kX1gREZqxWqE8iNQOxmcPiSFf3slsN3K4yE7BrLTbmGYDwtzItVpxtv+MZ SB9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=myzI27sykV+zo5/dyKkwt+i0fBKy0tEQwbx8qgbiivk=; b=FMNOmRJoexzK9P3l57tJj9Zt9GoBgKvvhhhxciOrzv1J24JiOvHovqe2EvOC0KPANF G3vaaabsrFTX0dt5F/Ndm4OVKquveNsB3QyUHMHcuOOmXZ/YH9lAh0s1y3PmmRqZQgw0 3q8NZmYtniU462hfrvtCslhGh4odIFV1AwWZD6PodcmexKvoBxbomUCSEOCxjokQv34o fh0527fUwfagCNFON46Vu36LoIfoEbI3WSKjj2lm5vF7A49SdOgOYgnWae22szJzZ1aM eyidZDpgbh48Dowx8fSe+8bosWczJ1epT2d9YkWqjdz33vaVVkKx/Rce2x4ogfqAUite SmHQ== X-Gm-Message-State: APjAAAVRij70W41+u33xnkOQC8lkeGZVeK9Wm857vI5PUbunm2ZYKuvo JHgsDHHQSTZTa2LgerxeXV20hGy8iQYKsg6fjQhmag== X-Received: by 2002:ab0:1562:: with SMTP id p31mr4819436uae.15.1567085677038; Thu, 29 Aug 2019 06:34:37 -0700 (PDT) MIME-Version: 1.0 References: <20190829104928.27404-1-yamada.masahiro@socionext.com> <20190829104928.27404-2-yamada.masahiro@socionext.com> In-Reply-To: <20190829104928.27404-2-yamada.masahiro@socionext.com> From: Ulf Hansson Date: Thu, 29 Aug 2019 15:34:00 +0200 Message-ID: Subject: Re: [PATCH 2/3] mmc: sdhci: constify references of parameters to __sdhci_read_caps() To: Masahiro Yamada Cc: "linux-mmc@vger.kernel.org" , Adrian Hunter , Piotr Sroka , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Aug 2019 at 12:49, 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 Applied for next, thanks! Kind regards Uffe > --- > > 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 >