pinctrl: mediatek: mt8135/mt8173: Constify of_device_id table
diff mbox

Message ID 1426229083.15007.1.camel@phoenix
State New
Headers show

Commit Message

Axel Lin March 13, 2015, 6:44 a.m. UTC
Also make the table a bit compact.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/pinctrl/mediatek/pinctrl-mt8135.c | 8 +++-----
 drivers/pinctrl/mediatek/pinctrl-mt8173.c | 8 +++-----
 2 files changed, 6 insertions(+), 10 deletions(-)

Comments

Hongzhou Yang March 13, 2015, 7:50 p.m. UTC | #1
On Fri, 2015-03-13 at 14:44 +0800, Axel Lin wrote:
> Also make the table a bit compact.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
>  drivers/pinctrl/mediatek/pinctrl-mt8135.c | 8 +++-----
>  drivers/pinctrl/mediatek/pinctrl-mt8173.c | 8 +++-----
>  2 files changed, 6 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
> index 1296d6d..b7e91c1 100644
> --- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c
> +++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
> @@ -347,11 +347,9 @@ static int mt8135_pinctrl_probe(struct platform_device *pdev)
>  	return mtk_pctrl_init(pdev, &mt8135_pinctrl_data);
>  }
>  
> -static struct of_device_id mt8135_pctrl_match[] = {
> -	{
> -		.compatible = "mediatek,mt8135-pinctrl",
> -	}, {
> -	}
> +static const struct of_device_id mt8135_pctrl_match[] = {
> +	{ .compatible = "mediatek,mt8135-pinctrl", },
> +	{ }
>  };
>  MODULE_DEVICE_TABLE(of, mt8135_pctrl_match);
>  
> diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
> index f07cafb..46e4f6e 100644
> --- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c
> +++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
> @@ -427,11 +427,9 @@ static int mt8173_pinctrl_probe(struct platform_device *pdev)
>  	return mtk_pctrl_init(pdev, &mt8173_pinctrl_data);
>  }
>  
> -static struct of_device_id mt8173_pctrl_match[] = {
> -	{
> -		.compatible = "mediatek,mt8173-pinctrl",
> -	}, {
> -	}
> +static const struct of_device_id mt8173_pctrl_match[] = {
> +	{ .compatible = "mediatek,mt8173-pinctrl", },
> +	{ }
>  };
>  MODULE_DEVICE_TABLE(of, mt8173_pctrl_match);
>  

Hi Axel,

Thank you very much.

Acked-by: Hongzhou Yang <hongzhou.yang@mediatek.com>

Hongzhou

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Linus Walleij March 18, 2015, 12:09 p.m. UTC | #2
On Fri, Mar 13, 2015 at 7:44 AM, Axel Lin <axel.lin@ingics.com> wrote:

> Also make the table a bit compact.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch
diff mbox

diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8135.c b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
index 1296d6d..b7e91c1 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8135.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8135.c
@@ -347,11 +347,9 @@  static int mt8135_pinctrl_probe(struct platform_device *pdev)
 	return mtk_pctrl_init(pdev, &mt8135_pinctrl_data);
 }
 
-static struct of_device_id mt8135_pctrl_match[] = {
-	{
-		.compatible = "mediatek,mt8135-pinctrl",
-	}, {
-	}
+static const struct of_device_id mt8135_pctrl_match[] = {
+	{ .compatible = "mediatek,mt8135-pinctrl", },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mt8135_pctrl_match);
 
diff --git a/drivers/pinctrl/mediatek/pinctrl-mt8173.c b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
index f07cafb..46e4f6e 100644
--- a/drivers/pinctrl/mediatek/pinctrl-mt8173.c
+++ b/drivers/pinctrl/mediatek/pinctrl-mt8173.c
@@ -427,11 +427,9 @@  static int mt8173_pinctrl_probe(struct platform_device *pdev)
 	return mtk_pctrl_init(pdev, &mt8173_pinctrl_data);
 }
 
-static struct of_device_id mt8173_pctrl_match[] = {
-	{
-		.compatible = "mediatek,mt8173-pinctrl",
-	}, {
-	}
+static const struct of_device_id mt8173_pctrl_match[] = {
+	{ .compatible = "mediatek,mt8173-pinctrl", },
+	{ }
 };
 MODULE_DEVICE_TABLE(of, mt8173_pctrl_match);