* [PATCH 02/13] Input: gpio_keys - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
@ 2014-05-07 9:15 ` Jingoo Han
2014-05-07 9:16 ` [PATCH 03/13] Input: gpio_keys_polled " Jingoo Han
` (11 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:15 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Philippe Langlais'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/keyboard/gpio_keys.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/keyboard/gpio_keys.c b/drivers/input/keyboard/gpio_keys.c
index 52dc872..af85218 100644
--- a/drivers/input/keyboard/gpio_keys.c
+++ b/drivers/input/keyboard/gpio_keys.c
@@ -646,7 +646,7 @@ gpio_keys_get_devtree_pdata(struct device *dev)
return pdata;
}
-static struct of_device_id gpio_keys_of_match[] = {
+static const struct of_device_id gpio_keys_of_match[] = {
{ .compatible = "gpio-keys", },
{ },
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 03/13] Input: gpio_keys_polled - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
2014-05-07 9:15 ` [PATCH 02/13] Input: gpio_keys " Jingoo Han
@ 2014-05-07 9:16 ` Jingoo Han
2014-05-07 9:17 ` [PATCH 04/13] Input: imx_keypad " Jingoo Han
` (10 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:16 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Gabor Juhos'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/keyboard/gpio_keys_polled.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c
index e571e19..bea53a6 100644
--- a/drivers/input/keyboard/gpio_keys_polled.c
+++ b/drivers/input/keyboard/gpio_keys_polled.c
@@ -191,7 +191,7 @@ err_out:
return ERR_PTR(error);
}
-static struct of_device_id gpio_keys_polled_of_match[] = {
+static const struct of_device_id gpio_keys_polled_of_match[] = {
{ .compatible = "gpio-keys-polled", },
{ },
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 04/13] Input: imx_keypad - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
2014-05-07 9:15 ` [PATCH 02/13] Input: gpio_keys " Jingoo Han
2014-05-07 9:16 ` [PATCH 03/13] Input: gpio_keys_polled " Jingoo Han
@ 2014-05-07 9:17 ` Jingoo Han
2014-05-07 9:18 ` [PATCH 05/13] Input: gpio-beeper " Jingoo Han
` (9 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:17 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Fabio Estevam', 'Alberto Panizzo'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/keyboard/imx_keypad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/keyboard/imx_keypad.c b/drivers/input/keyboard/imx_keypad.c
index 97ec335..8280cb1 100644
--- a/drivers/input/keyboard/imx_keypad.c
+++ b/drivers/input/keyboard/imx_keypad.c
@@ -415,7 +415,7 @@ open_err:
}
#ifdef CONFIG_OF
-static struct of_device_id imx_keypad_of_match[] = {
+static const struct of_device_id imx_keypad_of_match[] = {
{ .compatible = "fsl,imx21-kpp", },
{ /* sentinel */ }
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 05/13] Input: gpio-beeper - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (2 preceding siblings ...)
2014-05-07 9:17 ` [PATCH 04/13] Input: imx_keypad " Jingoo Han
@ 2014-05-07 9:18 ` Jingoo Han
2014-05-07 9:19 ` [PATCH 06/13] Input: rotary_encoder " Jingoo Han
` (8 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:18 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Alexander Shiyan'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/misc/gpio-beeper.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/misc/gpio-beeper.c b/drivers/input/misc/gpio-beeper.c
index 5be291d..66c152c 100644
--- a/drivers/input/misc/gpio-beeper.c
+++ b/drivers/input/misc/gpio-beeper.c
@@ -104,7 +104,7 @@ static int gpio_beeper_probe(struct platform_device *pdev)
}
#ifdef CONFIG_OF
-static struct of_device_id gpio_beeper_of_match[] = {
+static const struct of_device_id gpio_beeper_of_match[] = {
{ .compatible = BEEPER_MODNAME, },
{ }
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 06/13] Input: rotary_encoder - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (3 preceding siblings ...)
2014-05-07 9:18 ` [PATCH 05/13] Input: gpio-beeper " Jingoo Han
@ 2014-05-07 9:19 ` Jingoo Han
2014-05-07 9:20 ` [PATCH 07/13] Input: olpc_apsp " Jingoo Han
` (7 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:19 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Daniel Mack'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/misc/rotary_encoder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/misc/rotary_encoder.c b/drivers/input/misc/rotary_encoder.c
index 99b9e42..93558a1c 100644
--- a/drivers/input/misc/rotary_encoder.c
+++ b/drivers/input/misc/rotary_encoder.c
@@ -143,7 +143,7 @@ static irqreturn_t rotary_encoder_half_period_irq(int irq, void *dev_id)
}
#ifdef CONFIG_OF
-static struct of_device_id rotary_encoder_of_match[] = {
+static const struct of_device_id rotary_encoder_of_match[] = {
{ .compatible = "rotary-encoder", },
{ },
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 07/13] Input: olpc_apsp - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (4 preceding siblings ...)
2014-05-07 9:19 ` [PATCH 06/13] Input: rotary_encoder " Jingoo Han
@ 2014-05-07 9:20 ` Jingoo Han
2014-05-07 9:21 ` [PATCH 08/13] Input: apbps2 " Jingoo Han
` (6 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:20 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Daniel Drake'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/serio/olpc_apsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/serio/olpc_apsp.c b/drivers/input/serio/olpc_apsp.c
index 5d2fe7e..d906f3e 100644
--- a/drivers/input/serio/olpc_apsp.c
+++ b/drivers/input/serio/olpc_apsp.c
@@ -262,7 +262,7 @@ static int olpc_apsp_remove(struct platform_device *pdev)
return 0;
}
-static struct of_device_id olpc_apsp_dt_ids[] = {
+static const struct of_device_id olpc_apsp_dt_ids[] = {
{ .compatible = "olpc,ap-sp", },
{}
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 08/13] Input: apbps2 - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (5 preceding siblings ...)
2014-05-07 9:20 ` [PATCH 07/13] Input: olpc_apsp " Jingoo Han
@ 2014-05-07 9:21 ` Jingoo Han
2014-05-07 9:22 ` [PATCH 09/13] Input: auo-pixcir-ts " Jingoo Han
` (5 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:21 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Daniel Hellstrom'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/serio/apbps2.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/serio/apbps2.c b/drivers/input/serio/apbps2.c
index 17e01a8..98be824 100644
--- a/drivers/input/serio/apbps2.c
+++ b/drivers/input/serio/apbps2.c
@@ -203,7 +203,7 @@ static int apbps2_of_remove(struct platform_device *of_dev)
return 0;
}
-static struct of_device_id apbps2_of_match[] = {
+static const struct of_device_id apbps2_of_match[] = {
{ .name = "GAISLER_APBPS2", },
{ .name = "01_060", },
{}
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 09/13] Input: auo-pixcir-ts - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (6 preceding siblings ...)
2014-05-07 9:21 ` [PATCH 08/13] Input: apbps2 " Jingoo Han
@ 2014-05-07 9:22 ` Jingoo Han
2014-05-07 9:30 ` Heiko Stübner
2014-05-07 9:23 ` [PATCH 10/13] Input: egalax_ts " Jingoo Han
` (4 subsequent siblings)
12 siblings, 1 reply; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:22 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Heiko Stübner'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/touchscreen/auo-pixcir-ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/auo-pixcir-ts.c b/drivers/input/touchscreen/auo-pixcir-ts.c
index d3f9f6b..7f3c947 100644
--- a/drivers/input/touchscreen/auo-pixcir-ts.c
+++ b/drivers/input/touchscreen/auo-pixcir-ts.c
@@ -679,7 +679,7 @@ static const struct i2c_device_id auo_pixcir_idtable[] = {
MODULE_DEVICE_TABLE(i2c, auo_pixcir_idtable);
#ifdef CONFIG_OF
-static struct of_device_id auo_pixcir_ts_dt_idtable[] = {
+static const struct of_device_id auo_pixcir_ts_dt_idtable[] = {
{ .compatible = "auo,auo_pixcir_ts" },
{},
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH 09/13] Input: auo-pixcir-ts - Make of_device_id array const
2014-05-07 9:22 ` [PATCH 09/13] Input: auo-pixcir-ts " Jingoo Han
@ 2014-05-07 9:30 ` Heiko Stübner
0 siblings, 0 replies; 17+ messages in thread
From: Heiko Stübner @ 2014-05-07 9:30 UTC (permalink / raw)
To: Jingoo Han
Cc: 'Dmitry Torokhov', 'Dmitry Torokhov', linux-input
Am Mittwoch, 7. Mai 2014, 18:22:10 schrieb Jingoo Han:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/input/touchscreen/auo-pixcir-ts.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/input/touchscreen/auo-pixcir-ts.c
> b/drivers/input/touchscreen/auo-pixcir-ts.c index d3f9f6b..7f3c947 100644
> --- a/drivers/input/touchscreen/auo-pixcir-ts.c
> +++ b/drivers/input/touchscreen/auo-pixcir-ts.c
> @@ -679,7 +679,7 @@ static const struct i2c_device_id auo_pixcir_idtable[] =
> { MODULE_DEVICE_TABLE(i2c, auo_pixcir_idtable);
>
> #ifdef CONFIG_OF
> -static struct of_device_id auo_pixcir_ts_dt_idtable[] = {
> +static const struct of_device_id auo_pixcir_ts_dt_idtable[] = {
> { .compatible = "auo,auo_pixcir_ts" },
> {},
> };
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 10/13] Input: egalax_ts - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (7 preceding siblings ...)
2014-05-07 9:22 ` [PATCH 09/13] Input: auo-pixcir-ts " Jingoo Han
@ 2014-05-07 9:23 ` Jingoo Han
2014-05-07 9:24 ` PATCH 11/13] Input: lpc32xx_ts " Jingoo Han
` (3 subsequent siblings)
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:23 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Zhang Jiejing'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/touchscreen/egalax_ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/egalax_ts.c b/drivers/input/touchscreen/egalax_ts.c
index e6bcb13..c805784 100644
--- a/drivers/input/touchscreen/egalax_ts.c
+++ b/drivers/input/touchscreen/egalax_ts.c
@@ -262,7 +262,7 @@ static int egalax_ts_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(egalax_ts_pm_ops, egalax_ts_suspend, egalax_ts_resume);
-static struct of_device_id egalax_ts_dt_ids[] = {
+static const struct of_device_id egalax_ts_dt_ids[] = {
{ .compatible = "eeti,egalax_ts" },
{ /* sentinel */ }
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* PATCH 11/13] Input: lpc32xx_ts - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (8 preceding siblings ...)
2014-05-07 9:23 ` [PATCH 10/13] Input: egalax_ts " Jingoo Han
@ 2014-05-07 9:24 ` Jingoo Han
2014-05-07 9:36 ` Roland Stigge
2014-05-07 9:25 ` [PATCH 12/13] Input: mms114 " Jingoo Han
` (2 subsequent siblings)
12 siblings, 1 reply; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:24 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Roland Stigge'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/touchscreen/lpc32xx_ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/lpc32xx_ts.c b/drivers/input/touchscreen/lpc32xx_ts.c
index 2058253..bb47d34 100644
--- a/drivers/input/touchscreen/lpc32xx_ts.c
+++ b/drivers/input/touchscreen/lpc32xx_ts.c
@@ -384,7 +384,7 @@ static const struct dev_pm_ops lpc32xx_ts_pm_ops = {
#endif
#ifdef CONFIG_OF
-static struct of_device_id lpc32xx_tsc_of_match[] = {
+static const struct of_device_id lpc32xx_tsc_of_match[] = {
{ .compatible = "nxp,lpc3220-tsc", },
{ },
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: PATCH 11/13] Input: lpc32xx_ts - Make of_device_id array const
2014-05-07 9:24 ` PATCH 11/13] Input: lpc32xx_ts " Jingoo Han
@ 2014-05-07 9:36 ` Roland Stigge
0 siblings, 0 replies; 17+ messages in thread
From: Roland Stigge @ 2014-05-07 9:36 UTC (permalink / raw)
To: Jingoo Han, 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input
On 05/07/2014 11:24 AM, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/input/touchscreen/lpc32xx_ts.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/input/touchscreen/lpc32xx_ts.c b/drivers/input/touchscreen/lpc32xx_ts.c
> index 2058253..bb47d34 100644
> --- a/drivers/input/touchscreen/lpc32xx_ts.c
> +++ b/drivers/input/touchscreen/lpc32xx_ts.c
> @@ -384,7 +384,7 @@ static const struct dev_pm_ops lpc32xx_ts_pm_ops = {
> #endif
>
> #ifdef CONFIG_OF
> -static struct of_device_id lpc32xx_tsc_of_match[] = {
> +static const struct of_device_id lpc32xx_tsc_of_match[] = {
> { .compatible = "nxp,lpc3220-tsc", },
> { },
> };
>
Acked-by: Roland Stigge <stigge@antcom.de>
^ permalink raw reply [flat|nested] 17+ messages in thread
* [PATCH 12/13] Input: mms114 - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (9 preceding siblings ...)
2014-05-07 9:24 ` PATCH 11/13] Input: lpc32xx_ts " Jingoo Han
@ 2014-05-07 9:25 ` Jingoo Han
2014-05-07 9:26 ` [PATCH 13/13] Input: zforce " Jingoo Han
2014-05-08 15:52 ` [PATCH 01/13] Input: clps711x-keypad " Dmitry Torokhov
12 siblings, 0 replies; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:25 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Joonyoung Shim'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/touchscreen/mms114.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c
index 8a598c0..9d83413 100644
--- a/drivers/input/touchscreen/mms114.c
+++ b/drivers/input/touchscreen/mms114.c
@@ -570,7 +570,7 @@ static const struct i2c_device_id mms114_id[] = {
MODULE_DEVICE_TABLE(i2c, mms114_id);
#ifdef CONFIG_OF
-static struct of_device_id mms114_dt_match[] = {
+static const struct of_device_id mms114_dt_match[] = {
{ .compatible = "melfas,mms114" },
{ }
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* [PATCH 13/13] Input: zforce - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (10 preceding siblings ...)
2014-05-07 9:25 ` [PATCH 12/13] Input: mms114 " Jingoo Han
@ 2014-05-07 9:26 ` Jingoo Han
2014-05-07 9:30 ` Heiko Stübner
2014-05-08 15:52 ` [PATCH 01/13] Input: clps711x-keypad " Dmitry Torokhov
12 siblings, 1 reply; 17+ messages in thread
From: Jingoo Han @ 2014-05-07 9:26 UTC (permalink / raw)
To: 'Dmitry Torokhov'
Cc: 'Dmitry Torokhov', linux-input, 'Jingoo Han',
'Heiko Stübner'
Make of_device_id array const, because all OF functions
handle it as const.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/input/touchscreen/zforce_ts.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/touchscreen/zforce_ts.c b/drivers/input/touchscreen/zforce_ts.c
index 01d30ce..feea85b 100644
--- a/drivers/input/touchscreen/zforce_ts.c
+++ b/drivers/input/touchscreen/zforce_ts.c
@@ -880,7 +880,7 @@ static struct i2c_device_id zforce_idtable[] = {
MODULE_DEVICE_TABLE(i2c, zforce_idtable);
#ifdef CONFIG_OF
-static struct of_device_id zforce_dt_idtable[] = {
+static const struct of_device_id zforce_dt_idtable[] = {
{ .compatible = "neonode,zforce" },
{},
};
--
1.7.10.4
^ permalink raw reply related [flat|nested] 17+ messages in thread
* Re: [PATCH 13/13] Input: zforce - Make of_device_id array const
2014-05-07 9:26 ` [PATCH 13/13] Input: zforce " Jingoo Han
@ 2014-05-07 9:30 ` Heiko Stübner
0 siblings, 0 replies; 17+ messages in thread
From: Heiko Stübner @ 2014-05-07 9:30 UTC (permalink / raw)
To: Jingoo Han
Cc: 'Dmitry Torokhov', 'Dmitry Torokhov', linux-input
Am Mittwoch, 7. Mai 2014, 18:26:25 schrieb Jingoo Han:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
> ---
> drivers/input/touchscreen/zforce_ts.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/input/touchscreen/zforce_ts.c
> b/drivers/input/touchscreen/zforce_ts.c index 01d30ce..feea85b 100644
> --- a/drivers/input/touchscreen/zforce_ts.c
> +++ b/drivers/input/touchscreen/zforce_ts.c
> @@ -880,7 +880,7 @@ static struct i2c_device_id zforce_idtable[] = {
> MODULE_DEVICE_TABLE(i2c, zforce_idtable);
>
> #ifdef CONFIG_OF
> -static struct of_device_id zforce_dt_idtable[] = {
> +static const struct of_device_id zforce_dt_idtable[] = {
> { .compatible = "neonode,zforce" },
> {},
> };
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const
2014-05-07 9:11 [PATCH 01/13] Input: clps711x-keypad - Make of_device_id array const Jingoo Han
` (11 preceding siblings ...)
2014-05-07 9:26 ` [PATCH 13/13] Input: zforce " Jingoo Han
@ 2014-05-08 15:52 ` Dmitry Torokhov
12 siblings, 0 replies; 17+ messages in thread
From: Dmitry Torokhov @ 2014-05-08 15:52 UTC (permalink / raw)
To: Jingoo Han; +Cc: linux-input, 'Alexander Shiyan'
On Wed, May 07, 2014 at 06:11:52PM +0900, Jingoo Han wrote:
> Make of_device_id array const, because all OF functions
> handle it as const.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Applied the whole lot, thank you.
> ---
> drivers/input/keyboard/clps711x-keypad.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/input/keyboard/clps711x-keypad.c b/drivers/input/keyboard/clps711x-keypad.c
> index 3955aec..552b65c 100644
> --- a/drivers/input/keyboard/clps711x-keypad.c
> +++ b/drivers/input/keyboard/clps711x-keypad.c
> @@ -185,7 +185,7 @@ static int clps711x_keypad_remove(struct platform_device *pdev)
> return 0;
> }
>
> -static struct of_device_id clps711x_keypad_of_match[] = {
> +static const struct of_device_id clps711x_keypad_of_match[] = {
> { .compatible = "cirrus,clps711x-keypad", },
> { }
> };
> --
> 1.7.10.4
>
>
--
Dmitry
^ permalink raw reply [flat|nested] 17+ messages in thread