mfd: syscon: Set regmap name to DT node name
authorDavid Lechner <david@lechnology.com>
Tue, 23 Jan 2018 22:57:34 +0000 (16:57 -0600)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 May 2018 08:21:48 +0000 (09:21 +0100)
This sets the regmap name to the device tree node name. This is useful
for debugging.

Signed-off-by: David Lechner <david@lechnology.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/syscon.c

index 7eaa40bc703fdfc0500a7df2905543a2efd806ac..fc9ba0ea4e449c0104ce6b70b5603d825e7f89e4 100644 (file)
@@ -106,6 +106,7 @@ static struct syscon *of_syscon_register(struct device_node *np)
                }
        }
 
+       syscon_config.name = of_node_full_name(np);
        syscon_config.reg_stride = reg_io_width;
        syscon_config.val_bits = reg_io_width * 8;
        syscon_config.max_register = resource_size(&res) - reg_io_width;