All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: core: Un-constify mfd_cell.of_reg
@ 2023-08-16 12:27 Michał Mirosław
  2023-08-18 15:58 ` Lee Jones
  0 siblings, 1 reply; 6+ messages in thread
From: Michał Mirosław @ 2023-08-16 12:27 UTC (permalink / raw)
  To: Lee Jones; +Cc: linux-kernel

of_reg is the only constant member of struct mfd_cell. It seems to be
accidental and prevents dynamically filling in mfd_cells that use of_reg.
Remove the `const`.

Fixes: 466a62d7642f ("mfd: core: Make a best effort attempt to match devices with the correct of_nodes")
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
---
 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 47e7a3a61ce6..e8bcad641d8c 100644
--- a/include/linux/mfd/core.h
+++ b/include/linux/mfd/core.h
@@ -92,7 +92,7 @@ struct mfd_cell {
 	 * (above) when matching OF nodes with devices that have identical
 	 * compatible strings
 	 */
-	const u64 of_reg;
+	u64 of_reg;
 
 	/* Set to 'true' to use 'of_reg' (above) - allows for of_reg=0 */
 	bool use_of_reg;
-- 
2.39.2


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

end of thread, other threads:[~2023-08-24 12:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-16 12:27 [PATCH] mfd: core: Un-constify mfd_cell.of_reg Michał Mirosław
2023-08-18 15:58 ` Lee Jones
2023-08-19  0:11   ` Michał Mirosław
2023-08-21  8:13     ` Lee Jones
2023-08-22 19:36       ` Michał Mirosław
2023-08-24 12:19         ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.