2020-05-16 11:08:22

by Tomas Winkler

[permalink] [raw]
Subject: [PATCH 1/2] mfd: constify properties in mfd_cell

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

Signed-off-by: Tomas Winkler <[email protected]>
---
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.3


2020-05-20 10:54:33

by Lee Jones

[permalink] [raw]
Subject: Re: [PATCH 1/2] mfd: constify properties in mfd_cell

On Sat, 16 May 2020, Tomas Winkler wrote:

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

Apart from the odd commit log formatting ...

> Signed-off-by: Tomas Winkler <[email protected]>
> ---
> include/linux/mfd/core.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

... patch seems fine.

Applied, thanks.

--
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog