diff mbox

[01/13] Input: clps711x-keypad - Make of_device_id array const

Message ID 022e01cf69d4$62d1e5e0$2875b1a0$%han@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jingoo Han May 7, 2014, 9:11 a.m. UTC
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/clps711x-keypad.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Dmitry Torokhov May 8, 2014, 3:52 p.m. UTC | #1
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
> 
>
diff mbox

Patch

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", },
 	{ }
 };