linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2 V2] mfd: constify properties in mfd_cell
@ 2020-02-08 18:44 Tomas Winkler
  2020-02-08 18:44 ` [PATCH 2/2] platform: constify properties in platform_device Tomas Winkler
  2020-02-09 11:48 ` [PATCH 1/2 V2] mfd: constify properties in mfd_cell Andy Shevchenko
  0 siblings, 2 replies; 6+ messages in thread
From: Tomas Winkler @ 2020-02-08 18:44 UTC (permalink / raw)
  To: Lee Jones, Andy Shevchenko, Greg Kroah-Hartman
  Cc: linux-kernel, Tomas Winkler, Andy Shevchenko

Constify 'struct property_entry *properties' in
mfd_cell It is always passed
around as a pointer const struct.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---

V2: drop platform_device part

 include/linux/mfd/core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.21.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] platform: constify properties in platform_device
  2020-02-08 18:44 [PATCH 1/2 V2] mfd: constify properties in mfd_cell Tomas Winkler
@ 2020-02-08 18:44 ` Tomas Winkler
  2020-02-09 11:48 ` [PATCH 1/2 V2] mfd: constify properties in mfd_cell Andy Shevchenko
  1 sibling, 0 replies; 6+ messages in thread
From: Tomas Winkler @ 2020-02-08 18:44 UTC (permalink / raw)
  To: Lee Jones, Andy Shevchenko, Greg Kroah-Hartman
  Cc: linux-kernel, Tomas Winkler, Andy Shevchenko

Constify 'struct property_entry *properties' in
platform_device. It is always passed around as a pointer const struct.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
 include/linux/platform_device.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2 V2] mfd: constify properties in mfd_cell
  2020-02-08 18:44 [PATCH 1/2 V2] mfd: constify properties in mfd_cell Tomas Winkler
  2020-02-08 18:44 ` [PATCH 2/2] platform: constify properties in platform_device Tomas Winkler
@ 2020-02-09 11:48 ` Andy Shevchenko
  2020-02-09 11:57   ` Winkler, Tomas
  1 sibling, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2020-02-09 11:48 UTC (permalink / raw)
  To: Tomas Winkler
  Cc: Lee Jones, Andy Shevchenko, Greg Kroah-Hartman,
	Linux Kernel Mailing List

On Sat, Feb 8, 2020 at 8:44 PM Tomas Winkler <tomas.winkler@intel.com> wrote:
>
> Constify 'struct property_entry *properties' in
> mfd_cell It is always passed
> around as a pointer const struct.

I guess this should be second patch in the split and it's actually
dependent to the first one (won't we get a compiler warning when we
drop const qualifier during assignment?).

> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> ---
>
> V2: drop platform_device part

Btw, when you prepare series, you may use -vX command line parameter,
where X is a version number. The scripts will put v2 in each Subject
line uniformly.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH 1/2 V2] mfd: constify properties in mfd_cell
  2020-02-09 11:48 ` [PATCH 1/2 V2] mfd: constify properties in mfd_cell Andy Shevchenko
@ 2020-02-09 11:57   ` Winkler, Tomas
  2020-02-09 12:08     ` Andy Shevchenko
  0 siblings, 1 reply; 6+ messages in thread
From: Winkler, Tomas @ 2020-02-09 11:57 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Lee Jones, Andy Shevchenko, Greg Kroah-Hartman,
	Linux Kernel Mailing List


> 
> On Sat, Feb 8, 2020 at 8:44 PM Tomas Winkler <tomas.winkler@intel.com>
> wrote:
> >
> > Constify 'struct property_entry *properties' in mfd_cell It is always
> > passed around as a pointer const struct.
> 
> I guess this should be second patch in the split and it's actually dependent to the
> first one (won't we get a compiler warning when we drop const qualifier during
> assignment?).
> 
> > Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
> > Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> > ---
> >
> > V2: drop platform_device part
> 
> Btw, when you prepare series, you may use -vX command line parameter,
> where X is a version number. The scripts will put v2 in each Subject line
> uniformly.
Right, just the second patch was a new one, so not sure I should mark it v2. 
Thanks
Tomas


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2 V2] mfd: constify properties in mfd_cell
  2020-02-09 11:57   ` Winkler, Tomas
@ 2020-02-09 12:08     ` Andy Shevchenko
  2020-02-09 12:10       ` Winkler, Tomas
  0 siblings, 1 reply; 6+ messages in thread
From: Andy Shevchenko @ 2020-02-09 12:08 UTC (permalink / raw)
  To: Winkler, Tomas
  Cc: Lee Jones, Andy Shevchenko, Greg Kroah-Hartman,
	Linux Kernel Mailing List

On Sun, Feb 9, 2020 at 1:58 PM Winkler, Tomas <tomas.winkler@intel.com> wrote:
> > On Sat, Feb 8, 2020 at 8:44 PM Tomas Winkler <tomas.winkler@intel.com>
> > wrote:

> > > V2: drop platform_device part
> >
> > Btw, when you prepare series, you may use -vX command line parameter,
> > where X is a version number. The scripts will put v2 in each Subject line
> > uniformly.
> Right, just the second patch was a new one, so not sure I should mark it v2.

Yes, it evolved from the v1 of one patch. So, just mark both of them like
  v2: per subsystem split from v1
or alike.

-- 
With Best Regards,
Andy Shevchenko

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [PATCH 1/2 V2] mfd: constify properties in mfd_cell
  2020-02-09 12:08     ` Andy Shevchenko
@ 2020-02-09 12:10       ` Winkler, Tomas
  0 siblings, 0 replies; 6+ messages in thread
From: Winkler, Tomas @ 2020-02-09 12:10 UTC (permalink / raw)
  To: Andy Shevchenko
  Cc: Lee Jones, Andy Shevchenko, Greg Kroah-Hartman,
	Linux Kernel Mailing List


> 
> On Sun, Feb 9, 2020 at 1:58 PM Winkler, Tomas <tomas.winkler@intel.com>
> wrote:
> > > On Sat, Feb 8, 2020 at 8:44 PM Tomas Winkler
> > > <tomas.winkler@intel.com>
> > > wrote:
> 
> > > > V2: drop platform_device part
> > >
> > > Btw, when you prepare series, you may use -vX command line
> > > parameter, where X is a version number. The scripts will put v2 in
> > > each Subject line uniformly.
> > Right, just the second patch was a new one, so not sure I should mark it v2.
> 
> Yes, it evolved from the v1 of one patch. So, just mark both of them like
>   v2: per subsystem split from v1
> or alike.
Okay, we can look at that also this way.
Tomas


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-02-09 12:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-08 18:44 [PATCH 1/2 V2] mfd: constify properties in mfd_cell Tomas Winkler
2020-02-08 18:44 ` [PATCH 2/2] platform: constify properties in platform_device Tomas Winkler
2020-02-09 11:48 ` [PATCH 1/2 V2] mfd: constify properties in mfd_cell Andy Shevchenko
2020-02-09 11:57   ` Winkler, Tomas
2020-02-09 12:08     ` Andy Shevchenko
2020-02-09 12:10       ` Winkler, Tomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).