diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2021-03-29 12:50:37 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2021-04-08 23:45:55 +0200 |
commit | 95e272dc364a6bb70d461a42014a0142ab25ea82 (patch) | |
tree | 88cfef9115d03dc7d4c8fa04f2eaaa2d24c0d27c /arch/arm/mach-davinci/board-dm365-evm.c | |
parent | i2c: Add support for software nodes (diff) | |
download | linux-95e272dc364a6bb70d461a42014a0142ab25ea82.tar.xz 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-dm365-evm.c')
-rw-r--r-- | arch/arm/mach-davinci/board-dm365-evm.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/board-dm365-evm.c b/arch/arm/mach-davinci/board-dm365-evm.c index bdf31eb77620..b3bef74c982a 100644 --- a/arch/arm/mach-davinci/board-dm365-evm.c +++ b/arch/arm/mach-davinci/board-dm365-evm.c @@ -232,10 +232,14 @@ static const struct property_entry eeprom_properties[] = { { } }; +static const struct software_node eeprom_node = { + .properties = eeprom_properties, +}; + static struct i2c_board_info i2c_info[] = { { I2C_BOARD_INFO("24c256", 0x50), - .properties = eeprom_properties, + .swnode = &eeprom_node, }, { I2C_BOARD_INFO("tlv320aic3x", 0x18), |