summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2021-03-03 18:28:13 +0300
committerMark Brown <broonie@kernel.org>2021-03-16 13:29:43 +0000
commitd4272a7adf26c62c5afe86b6829712de519b4a26 (patch)
treea79da1605e6d265b0c4a0033bc878a68c9c5de0b
parent2df0c4a640c55c0eff7f97907b98ad6fdfedd226 (diff)
downloadlinux-stable-d4272a7adf26c62c5afe86b6829712de519b4a26.tar.gz
linux-stable-d4272a7adf26c62c5afe86b6829712de519b4a26.tar.bz2
linux-stable-d4272a7adf26c62c5afe86b6829712de519b4a26.zip
ARM: pxa: zeus: Constify the software node
When device properties are supplied to the devices, in reality a software fwnode that holds those properties is created which is then assigned to the device. If the device properties are constant the software node can also be constant. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Cc: Daniel Mack <daniel@zonque.org> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: Robert Jarzmik <robert.jarzmik@free.fr> Link: https://lore.kernel.org/r/20210303152814.35070-4-heikki.krogerus@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--arch/arm/mach-pxa/zeus.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/arm/mach-pxa/zeus.c b/arch/arm/mach-pxa/zeus.c
index b27fc7ac9cea..97700429633e 100644
--- a/arch/arm/mach-pxa/zeus.c
+++ b/arch/arm/mach-pxa/zeus.c
@@ -433,10 +433,14 @@ static const struct property_entry mcp251x_properties[] = {
{}
};
+static const struct software_node mcp251x_node = {
+ .properties = mcp251x_properties,
+};
+
static struct spi_board_info zeus_spi_board_info[] = {
[0] = {
.modalias = "mcp2515",
- .properties = mcp251x_properties,
+ .swnode = &mcp251x_node,
.irq = PXA_GPIO_TO_IRQ(ZEUS_CAN_GPIO),
.max_speed_hz = 1*1000*1000,
.bus_num = 3,