mfd: Constify properties in mfd_cell
authorTomas Winkler <tomas.winkler@intel.com>
Sat, 16 May 2020 11:06:08 +0000 (14:06 +0300)
committerLee Jones <lee.jones@linaro.org>
Tue, 26 May 2020 09:51:20 +0000 (10:51 +0100)
Constify 'struct property_entry *properties' in mfd_cell.
It is always passed around as a pointer const struct.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
include/linux/mfd/core.h

index d01d129..7e5ac3c 100644 (file)
@@ -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