Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5404474ybl; Tue, 4 Feb 2020 13:23:37 -0800 (PST) X-Google-Smtp-Source: APXvYqzU7m95P/AmADU0J5blQy8g4i3VY1fLXWS3So52M3HgFmqEbAzmTHYA80YjEHUH+ndROzVm X-Received: by 2002:aca:c74e:: with SMTP id x75mr725680oif.140.1580851417790; Tue, 04 Feb 2020 13:23:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580851417; cv=none; d=google.com; s=arc-20160816; b=YbLp6nHZ6TCkOvdZ1BcuT2nuVvvrSZeBKtJbrdsuDQgPnP/iHemqD5nZmI8awBQ3j+ H6AAfeZmXAgRJDL1oRqyTjvf8NnQngbOI+Teq4R+/272RCmRczwWgvwtNxHBqdJev378 dwA72YN8paswOU2aFtsRq1FFmaZ4AtEkWu8ViXphcCk5jOMnwVUn+cUNlQ6lRrh6up+T 1SO+DDFRdRyOI2JHNrJZwS3ceRCSH8I9O0m1Is/m9Z9OBSbhz9GahWY9mNjfyOYJQ51i A+Hj+VEBBwZBSstV6gxGhP70Jx9Cp4uzvqRjSi/Qv90bhlh50UxbkoCYdObshM1zB+lo cztQ== 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=Rsg9HVfXQAKe0Tg/V+FvAP0DR1wDiYD8Kd+TXvbK47k=; b=GgZPiL+0/RS8fLPyocABKA42EpXBcOQOMPgOT8mjsvkhgo+oxRqc4Hy4eZ/hDAD3uR TPRyfXFkCjDdH0niQO1H0TZfcmwWzNKvsRkNKgGTffUGF0EFMoOS3bFdiYKDV215uqkh WmWErzz/tXqGLTKqRmEdLXyJ+x/3ceMJvpJu26sFkJbEZWtkviCh4bkYOMwkHPE//HsY 0crCyJWgu8kcZOPe9LVV6h9AW4Y2fddbjy0YOmi5PfAZ6/H5xNG5kf7mUaiK0R8kRlFc x+K/IohquZ3wHb2Z+5QNVhgJL4l+tOmYDOGo69WmjmrRpcXjHfJ0dYQJ+B1zj4ZOG5D/ bSlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Lm6ioKZl; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l2si11442110oti.303.2020.02.04.13.23.21; Tue, 04 Feb 2020 13:23:37 -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=@gmail.com header.s=20161025 header.b=Lm6ioKZl; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727586AbgBDVWS (ORCPT + 99 others); Tue, 4 Feb 2020 16:22:18 -0500 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37134 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbgBDVWS (ORCPT ); Tue, 4 Feb 2020 16:22:18 -0500 Received: by mail-pl1-f195.google.com with SMTP id c23so7811044plz.4 for ; Tue, 04 Feb 2020 13:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Rsg9HVfXQAKe0Tg/V+FvAP0DR1wDiYD8Kd+TXvbK47k=; b=Lm6ioKZlv4kS9wvsuGYCspXcmDNoFPwtCTKJlTz6aW+/nZyMXAoa9spHx0IaUHuUZw oNysBEQrp6Tge14s3UAd/7MaCLVIDWSW81icYYFbHWAaezTgSiYb5QfdChfmbGLbicvT FHAU5c6shIcO5+n+LuDI0+Rw5sUS398cSidjZ8rBDPJRU5TVQWsQ53qh1jOxRE29P8+3 SFrvvBu0+kE8pV+HDKZj1C0ewMp2P5dxwYVgXm62GyaC5EqUfLrrCVoOQBaIfd5QED8j y1kFZXAyvSpyfH87A5fMwTu0RHieTN2w5A94Al/x5mgEqX9WsJcIOS77PYYqyWw8ZcZ0 N7iQ== 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=Rsg9HVfXQAKe0Tg/V+FvAP0DR1wDiYD8Kd+TXvbK47k=; b=C+aUT/XKmWILCpZS05xRNkLeZ2L2CqN1e7pp+aFduB54u00LBZsBMPiZem2zjhCvP7 nuNm7cPP09+jMpGWBflwrn/VOfO0vSJQL+MJw+Mf+XRuXqWG5SgYQ/DkpmHM3uLq4ASa xkTf6KJH0F8Brfnh4IO9l59B9uZlzyqr08l9sNKolQJFyUhYNl5lj4vgT4knt7IdbSiF PvJR5UjyBq5BC1a4UTlrwbeydHhAJhwPc+nq7fefkv0cvNzLm6k4AMLjYIPeR+uwX2Hd fIvedQW3ODoXr5PFRI+7jOnRELCZpp5pW89mQwg4mZYcYgRY4og1MxuR+H8QD5JA3Mvm TrMQ== X-Gm-Message-State: APjAAAXicR5QB0U6oefk1aWUB2tkLgUT0C3fep0/IXS+P5WA2YIwMhiO 7eDWx/4gWSFoxA/HuRU7S38MNmeq1jtgXKsDTY0= X-Received: by 2002:a17:90a:2004:: with SMTP id n4mr1443831pjc.20.1580851337474; Tue, 04 Feb 2020 13:22:17 -0800 (PST) MIME-Version: 1.0 References: <20200204201651.15778-1-tomas.winkler@intel.com> In-Reply-To: <20200204201651.15778-1-tomas.winkler@intel.com> From: Andy Shevchenko Date: Tue, 4 Feb 2020 23:22:06 +0200 Message-ID: Subject: Re: [PATCH] mfd: constify properties in mfd_cell To: Tomas Winkler Cc: Lee Jones , Andy Shevchenko , Greg Kroah-Hartman , 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 Tue, Feb 4, 2020 at 10:18 PM Tomas Winkler wrote: > > Constify 'struct property_entry *properties' in > mfd_cell and platform_device. It is always passed > around as a pointer const struct. > After commit 277036f05be242540b7bfe75f226107d04f51b06 Author: Jan Kiszka Date: Fri Jun 2 07:43:27 2017 +0200 platform: Accept const properties this one makes sense. Reviewed-by: Andy Shevchenko Does intel-lpss* compile with this change? > 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 > -- With Best Regards, Andy Shevchenko