projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b68ece3
)
mfd: max8997: Make of_device_id array const
author
Krzysztof Kozlowski
<k.kozlowski@samsung.com>
Tue, 13 May 2014 10:58:49 +0000
(12:58 +0200)
committer
Lee Jones
<lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:30 +0000
(08:11 +0100)
Array of struct of_device_id may be be const as expected by both
of_match_table field and of_match_node() call.
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/max8997.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/mfd/max8997.c
b/drivers/mfd/max8997.c
index 8cf7a015cfe501ddf3ce52c72abd6f45fdde579f..595364ee178a54b1292f376099dc81bc1a5a390c 100644
(file)
--- a/
drivers/mfd/max8997.c
+++ b/
drivers/mfd/max8997.c
@@
-51,7
+51,7
@@
static const struct mfd_cell max8997_devs[] = {
};
#ifdef CONFIG_OF
-static struct of_device_id max8997_pmic_dt_match[] = {
+static
const
struct of_device_id max8997_pmic_dt_match[] = {
{ .compatible = "maxim,max8997-pmic", .data = (void *)TYPE_MAX8997 },
{},
};