diff mbox series

drm/bridge: ti-sn65dsi86: make const array static

Message ID 20190226165932.17528-1-colin.king@canonical.com (mailing list archive)
State New, archived
Headers show
Series drm/bridge: ti-sn65dsi86: make const array static | expand

Commit Message

Colin King Feb. 26, 2019, 4:59 p.m. UTC
From: Colin Ian King <colin.king@canonical.com>

Don't populate the const array ti_sn_bridge_supply_names on the
stack but instead make it static.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Andrzej Hajda Feb. 27, 2019, 12:20 p.m. UTC | #1
On 26.02.2019 17:59, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Don't populate the const array ti_sn_bridge_supply_names on the
> stack but instead make it static.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>

 --
Regards
Andrzej
> ---
>  drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
> index f72ee137e5f1..4c2ca4e39be5 100644
> --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
> +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
> @@ -211,7 +211,7 @@ static struct ti_sn_bridge *bridge_to_ti_sn_bridge(struct drm_bridge *bridge)
>  static int ti_sn_bridge_parse_regulators(struct ti_sn_bridge *pdata)
>  {
>  	unsigned int i;
> -	const char * const ti_sn_bridge_supply_names[] = {
> +	static const char * const ti_sn_bridge_supply_names[] = {
>  		"vcca", "vcc", "vccio", "vpll",
>  	};
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
index f72ee137e5f1..4c2ca4e39be5 100644
--- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c
+++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c
@@ -211,7 +211,7 @@  static struct ti_sn_bridge *bridge_to_ti_sn_bridge(struct drm_bridge *bridge)
 static int ti_sn_bridge_parse_regulators(struct ti_sn_bridge *pdata)
 {
 	unsigned int i;
-	const char * const ti_sn_bridge_supply_names[] = {
+	static const char * const ti_sn_bridge_supply_names[] = {
 		"vcca", "vcc", "vccio", "vpll",
 	};