mirror of https://lore.kernel.org/lkml/
 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	[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

all inboxes | Powered by JetHome®