diff options
| author | Douglas Anderson <[email protected]> | 2019-02-14 18:12:48 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2019-02-15 10:36:15 +0000 |
| commit | 7416f1f206877fa2f61ada3dadbefdb4817b541f (patch) | |
| tree | 73837d7e2af146db2a16ba9a01a62b07c92770e8 /lib/string_helpers.c | |
| parent | PM: domains: no need to check return value of debugfs_create functions (diff) | |
| download | kernel-7416f1f206877fa2f61ada3dadbefdb4817b541f.tar.gz kernel-7416f1f206877fa2f61ada3dadbefdb4817b541f.zip | |
PM / Domains: Mark "name" const in genpd_dev_pm_attach_by_name()
The genpd_dev_pm_attach_by_name() simply takes the name and passes it
to of_property_match_string() where the argument is "const char *".
Adding a const here allows a later patch to add a const to
dev_pm_domain_attach_by_name() which allows drivers to pass in a name
that was declared "const" in a driver.
Fixes: 5d6be70add65 ("PM / Domains: Introduce option to attach a device by name to genpd")
Signed-off-by: Douglas Anderson <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Acked-by: Viresh Kumar <[email protected]>
Reviewed-by: Ulf Hansson <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
