diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2022-09-30 02:32:49 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2022-09-30 23:23:48 +0200 |
commit | 88269151be679b9accb2f1e73487eaeb9eae9e39 (patch) | |
tree | 842303d218b427d7cfa9888447f3e9ae8df4d91e /drivers/of | |
parent | of: Fix "dma-ranges" handling for bus controllers (diff) | |
download | linux-88269151be679b9accb2f1e73487eaeb9eae9e39.tar.xz linux-88269151be679b9accb2f1e73487eaeb9eae9e39.zip |
of: base: make of_device_compatible_match() accept const device node
of_device_is_compatible() accepts const device node pointer, there is
no reason why of_device_compatible_match() can't do the same.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/YzY5MaU5N4A2st5R@google.com
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/base.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 99cee6b02297..5e7c11ca1007 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -561,7 +561,7 @@ EXPORT_SYMBOL(of_device_is_compatible); * a NULL terminated array of strings. Returns the best match * score or 0. */ -int of_device_compatible_match(struct device_node *device, +int of_device_compatible_match(const struct device_node *device, const char *const *compat) { unsigned int tmp, score = 0; |