Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp999061ybx; Thu, 31 Oct 2019 04:17:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnvhJKyZCbu4zMn74y/mJZ+L0djntC+I+sjZn3nVnMcjVBcv4iJkpJLfMNSXN1mPU7ME0t X-Received: by 2002:a17:906:5399:: with SMTP id g25mr3303670ejo.125.1572520674384; Thu, 31 Oct 2019 04:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572520674; cv=none; d=google.com; s=arc-20160816; b=FswOLhDHJBZQNgbX/d2/kplSHAr9HzxX4o0OVLB5V7OrmiQLDDq2Yoy582aj9Mcs3I Ljo8gvcD7EjJhpXHzR5LA93ircYRpwX2CDfG3o6KbndgsMhHIxyW5c3RCfdDtTCV86qm cAPjHBMGcB1+QXsfSJgVd78Idr4jdCG07cZGOVUyTf/6Egs72HKffmUGKudbFq3PDn34 NkqSX7sY03W1EO49zHILlY0xLHqgryRK+kEMljNkd1tP/72LwvSmdThjaG4W8s/I6iNo zrRgM+sJ9F+3I0O2GRHOR+RrdxLCEZEnxUvblU5HIqybFPQucf2uyqy6RQvI4NZwvrNm yR5A== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=bBNeDW0nqu2skSdC0rLG1Ru3MpEryObD0coYCG5TaVM=; b=LKLXrc3gvdB+Yl8RQrpBKiEEgSGaC6KLyfA6kVhgE5AG+sYAVmyYTSIDjrWo+9t9c9 svSxoAXmw8oOf8Kt4wI8+y6gq9tB3JGdzhdRJOd+yzJhxpWjUnFFrs6v824QFJVXcU1R LAd5uZn/YXpZrn8eycKl9O5K7PINAZthZQoPHf8l/dgzUDKE7SzxsUG9AILqWhQ/NEZC 8TA5FB1vwhXUOVM4M2mVHA+ysYOYYrpGhrZgiz3dIHwHxFD66qElWsaPu21O/YPD3d2e ZNVPr+Vni3M+nTk31B8eBCZEcI8to7bJsxo4jPt7o/iwwLsHJE2buv9gPuru2evbxEUs yTzA== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p20si3930406edi.252.2019.10.31.04.17.30; Thu, 31 Oct 2019 04:17:54 -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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727379AbfJaLQI (ORCPT + 99 others); Thu, 31 Oct 2019 07:16:08 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46924 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726913AbfJaLQH (ORCPT ); Thu, 31 Oct 2019 07:16:07 -0400 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 43D6028F256; Thu, 31 Oct 2019 11:16:06 +0000 (GMT) Date: Thu, 31 Oct 2019 12:16:03 +0100 From: Boris Brezillon To: Cc: , , , , Subject: Re: [PATCH v3 18/32] mtd: spi-nor: Constify data to write to the Status Register Message-ID: <20191031121603.295ee60f@collabora.com> In-Reply-To: <20191029111615.3706-19-tudor.ambarus@microchip.com> References: <20191029111615.3706-1-tudor.ambarus@microchip.com> <20191029111615.3706-19-tudor.ambarus@microchip.com> Organization: Collabora X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Oct 2019 11:17:17 +0000 wrote: > From: Tudor Ambarus > > Constify the data to write to the Status Register. > > Signed-off-by: Tudor Ambarus Reviewed-by: Boris Brezillon > --- > drivers/mtd/spi-nor/spi-nor.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/spi-nor.c > index 5fb4d953b5c7..274786e1988f 100644 > --- a/drivers/mtd/spi-nor/spi-nor.c > +++ b/drivers/mtd/spi-nor/spi-nor.c > @@ -865,7 +865,7 @@ static int spi_nor_write_sr(struct spi_nor *nor, u8 val) > * second byte will be written to the configuration register. > * Return negative if error occurred. > */ > -static int spi_nor_write_sr_cr(struct spi_nor *nor, u8 *sr_cr) > +static int spi_nor_write_sr_cr(struct spi_nor *nor, const u8 *sr_cr) > { > int ret; > > @@ -912,7 +912,7 @@ static int spi_nor_write_sr_and_check(struct spi_nor *nor, u8 status_new, > return ((nor->bouncebuf[0] & mask) != (status_new & mask)) ? -EIO : 0; > } > > -static int spi_nor_write_sr2(struct spi_nor *nor, u8 *sr2) > +static int spi_nor_write_sr2(struct spi_nor *nor, const u8 *sr2) > { > int ret; >