Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5472212ybl; Tue, 4 Feb 2020 14:50:14 -0800 (PST) X-Google-Smtp-Source: APXvYqzylMeAL3wy5GQuyYDlHZmgib+i6y9mm6ae/oP7mMfeVemS97XIwVjgbidre41rvdzg/4ga X-Received: by 2002:a54:4117:: with SMTP id l23mr896379oic.140.1580856614000; Tue, 04 Feb 2020 14:50:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580856613; cv=none; d=google.com; s=arc-20160816; b=zS5x+JPOUrimlrpbj1pO8QeezJ4kRYgscSc2E7UCSdpZr/NkkggXEOzhfH4Gn7SRG5 V46Ds+Dzyx51JbBG58u7riMFi+ygZl4SxwhK67c8nN7YUjZKzn18eXsfWqmPTjtgqY25 bVFDfiLDlhFGvD4a4TOz4KX5AT5V2IVFcm0xeZ27e75JYEApsFVYwSg/dEEjCNspiOBZ 9Bb06idR6XV4QIIE8Kag9+p2kn3hl8uCCHHRxFiJ7X32JlhY+XMLvsD7pJRRWfxDVJfj 4ojB/q3LmFcVzUWLvcY989Pgmg7rB01maPeeyo6LZeHsOCVxiDG+mmSskaTs5D4LhYAN Tf2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pghLZDsMXA6spXo4mMP2UGODHXXQws0Baehw/reZMoQ=; b=Y20XwrUbcni3SiRWOwmdQjXyufrBZd3Vgg87HtGwCaV+A1i12hiDJ3iTnDf4wMFkZl 86haamD9mvH/KWNJ02dE6YDIJtowbTMQ4lq9hUnzGOM53kEIMaq/BcqOKghCneuG95kM O/iLTmkWYAurz4O3PvQ3floV8+aad477KaosyJd7m2TLi/mJzSG7fbNAcvy3Lry7RAOJ xwqVw61/PNAGw8xvdr7Wa5pAK1qtBLTl3KsDvSzSccX6FYbp8ceA95G4bO14Kn4/O/eN Q9YnDy0BsWNQ3iZVxTBrQZjgHYEmh2A81s/+4i7BI95XOAxo1wfLgBzSk2B6/vw3p4SE wV+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=OueAhdlr; 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 l17si12782722otk.218.2020.02.04.14.50.01; Tue, 04 Feb 2020 14:50:13 -0800 (PST) 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=@kernel.org header.s=default header.b=OueAhdlr; 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 S1727562AbgBDWsi (ORCPT + 99 others); Tue, 4 Feb 2020 17:48:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:57022 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbgBDWsh (ORCPT ); Tue, 4 Feb 2020 17:48:37 -0500 Received: from localhost (unknown [167.98.85.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8F33E20730; Tue, 4 Feb 2020 22:48:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580856517; bh=OuBNb9pRCpr2aDz2m+y/8WceLO92IqRoNNnHD6SjPsY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OueAhdlrHM04/MMfJF5IvTWRaNgVlXLhCWSIM97Xp4TDa4uDG7GSsiIGYZug0csC1 07bn/3iS5EDwbt+tj9FrlVKcZpn1AP+rx/L8aRnSYFBTNlSXoFW1pTYFsH03QBCGZ+ /CL1vWMNryLAMZ5X7TE6B5QTY0EdxsMclki5xVlw= Date: Tue, 4 Feb 2020 22:48:35 +0000 From: Greg Kroah-Hartman To: Tomas Winkler Cc: Lee Jones , Andy Shevchenko , linux-kernel@vger.kernel.org Subject: Re: [PATCH] mfd: constify properties in mfd_cell Message-ID: <20200204224835.GA1128093@kroah.com> References: <20200204201651.15778-1-tomas.winkler@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200204201651.15778-1-tomas.winkler@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 04, 2020 at 10:16:51PM +0200, Tomas Winkler wrote: > Constify 'struct property_entry *properties' in > mfd_cell and platform_device. It is always passed > around as a pointer const struct. > > Signed-off-by: Tomas Winkler > --- > include/linux/mfd/core.h | 2 +- > include/linux/platform_device.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/include/linux/mfd/core.h b/include/linux/mfd/core.h > index d01d1299e49d..7e5ac3c00891 100644 > --- a/include/linux/mfd/core.h > +++ b/include/linux/mfd/core.h > @@ -70,7 +70,7 @@ struct mfd_cell { > size_t pdata_size; > > /* device properties passed to the sub devices drivers */ > - struct property_entry *properties; > + const struct property_entry *properties; > > /* > * Device Tree compatible string > diff --git a/include/linux/platform_device.h b/include/linux/platform_device.h > index 276a03c24691..8e83c6ff140d 100644 > --- a/include/linux/platform_device.h > +++ b/include/linux/platform_device.h > @@ -89,7 +89,7 @@ struct platform_device_info { > size_t size_data; > u64 dma_mask; > > - struct property_entry *properties; > + const struct property_entry *properties; > }; > extern struct platform_device *platform_device_register_full( > const struct platform_device_info *pdevinfo); > -- > 2.21.1 > This really is two different patches, can you split and resend? thanks, gre gk-h