diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2021-03-29 13:50:37 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-04-08 23:45:55 +0200 |
commit | 95e272dc364a6bb70d461a42014a0142ab25ea82 (patch) | |
tree | 88cfef9115d03dc7d4c8fa04f2eaaa2d24c0d27c /arch/arm/mach-davinci/board-dm646x-evm.c | |
parent | 714638e02d94fa28c9e030d13d03e663fe24925e (diff) | |
download | linux-95e272dc364a6bb70d461a42014a0142ab25ea82.tar.gz linux-95e272dc364a6bb70d461a42014a0142ab25ea82.tar.bz2 linux-95e272dc364a6bb70d461a42014a0142ab25ea82.zip |
ARM: davinci: Constify the software nodes
Additional device properties are always just a part of a
software fwnode. If the device properties are constant, the
software node can also be constant.
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'arch/arm/mach-davinci/board-dm646x-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-dm646x-evm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/board-dm646x-evm.c b/arch/arm/mach-davinci/board-dm646x-evm.c index 952ddabc743e..ee91d81ebbfd 100644 --- a/arch/arm/mach-davinci/board-dm646x-evm.c +++ b/arch/arm/mach-davinci/board-dm646x-evm.c @@ -362,6 +362,10 @@ static const struct property_entry eeprom_properties[] = { PROPERTY_ENTRY_U32("pagesize", 64), { } }; + +static const struct software_node eeprom_node = { + .properties = eeprom_properties, +}; #endif static u8 dm646x_iis_serializer_direction[] = { @@ -430,7 +434,7 @@ static void evm_init_cpld(void) static struct i2c_board_info __initdata i2c_info[] = { { I2C_BOARD_INFO("24c256", 0x50), - .properties = eeprom_properties, + .swnode = &eeprom_node, }, { I2C_BOARD_INFO("pcf8574a", 0x38), |