Skip to contentSkip to conversation

drm/exynos: Staticize exynos_dpi_of_find_panel_node

PATCH In review Sachin Kamat 2 participants 5 messages May 22, 2014 – May 23, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/3 drm/exynos: Staticize exynos_dpi_of_find_panel_node

exynos_dpi_of_find_panel_node is local to this file.

---
These patches are based on Inki Dae's tree (exynos-drm-next branch).

---
 drivers/gpu/drm/exynos/exynos_drm_dpi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_drm_dpi.c +1 -1
index 03cb126..aefc828 100644
@@ -242,7 +242,7 @@ enum {
 	FIMD_PORT_WRB,
 };
 
-struct device_node *exynos_dpi_of_find_panel_node(struct device *dev)
+static struct device_node *exynos_dpi_of_find_panel_node(struct device *dev)
 {
 	struct device_node *np, *ep;
 
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/3 drm/exynos: Remove duplicate inclusion of i2c.h

i2c.h was included twice.

---
 drivers/gpu/drm/exynos/exynos_hdmi.c |    1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +0 -1
index ed6176e..d3f9684 100644
@@ -34,7 +34,6 @@
 #include <linux/io.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/i2c.h>
 #include <linux/of_gpio.h>
 #include <linux/hdmi.h>
 #include <linux/component.h>
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH 2/3] drm/exynos: Remove duplicate inclusion of i2c.h

Hi Sachin,

Quoted 13 lines · Sachin Kamat

i2c.h was included twice.

---
 drivers/gpu/drm/exynos/exynos_hdmi.c |    1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +0 -0
index ed6176e..d3f9684 100644

drivers/gpu/drm/exynos/exynos_hdmi.c line 39

Quoted 7 lines
drivers/gpu/drm/exynos/exynos_hdmi.c +0 -1
@@ -34,7 +34,6 @@
 #include <linux/io.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/i2c.h>
 #include <linux/of_gpio.h>
 #include <linux/hdmi.h>
 #include <linux/component.h>

It would be also good to order headers alphabetically.

Regards
Andrzej

#3 lore raw

Re: [PATCH 2/3] drm/exynos: Remove duplicate inclusion of i2c.h

Hi Andrzej,

Quoted 10 lines · Andrzej Hajda

Hi Sachin,

Quoted 7 lines · Sachin Kamat

i2c.h was included twice.

---
 drivers/gpu/drm/exynos/exynos_hdmi.c |    1 -
 1 file changed, 1 deletion(-)
Quoted 15 lines

drivers/gpu/drm/exynos/exynos_hdmi.c line 39

Quoted 13 lines
drivers/gpu/drm/exynos/exynos_hdmi.c +0 -1
index ed6176e..d3f9684 100644
@@ -34,7 +34,6 @@
 #include <linux/io.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
-#include <linux/i2c.h>
 #include <linux/of_gpio.h>
 #include <linux/hdmi.h>
 #include <linux/component.h>

It would be also good to order headers alphabetically.

That is outside the scope of this patch and can be taken up separately if needed.

Signature · 2 lines
With warm regards,
Sachin
#4 lore raw

PATCH 3/3 drm/exynos: Staticize local symbols in exynos_hdmi.c

In reply to Sachin Kamat

These symbols are local to this file.

---
 drivers/gpu/drm/exynos/exynos_hdmi.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/exynos/exynos_hdmi.c +3 -3
index d3f9684..220f048 100644
@@ -576,21 +576,21 @@ static const struct hdmiphy_config hdmiphy_5420_configs[] = {
 	},
 };
 
-struct hdmi_driver_data exynos5420_hdmi_driver_data = {
+static struct hdmi_driver_data exynos5420_hdmi_driver_data = {
 	.type		= HDMI_TYPE14,
 	.phy_confs	= hdmiphy_5420_configs,
 	.phy_conf_count	= ARRAY_SIZE(hdmiphy_5420_configs),
 	.is_apb_phy	= 1,
 };
 
-struct hdmi_driver_data exynos4212_hdmi_driver_data = {
+static struct hdmi_driver_data exynos4212_hdmi_driver_data = {
 	.type		= HDMI_TYPE14,
 	.phy_confs	= hdmiphy_v14_configs,
 	.phy_conf_count	= ARRAY_SIZE(hdmiphy_v14_configs),
 	.is_apb_phy	= 0,
 };
 
-struct hdmi_driver_data exynos5_hdmi_driver_data = {
+static struct hdmi_driver_data exynos5_hdmi_driver_data = {
 	.type		= HDMI_TYPE14,
 	.phy_confs	= hdmiphy_v13_configs,
 	.phy_conf_count	= ARRAY_SIZE(hdmiphy_v13_configs),
Signature · 1 line
1.7.9.5