summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/bridge
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2015-01-30 12:29:09 +0100
committerThierry Reding <treding@nvidia.com>2015-03-24 11:16:48 +0100
commit8a7d56b371ffe52f14d7a987d612a274b534bdf1 (patch)
tree0965776bd66a7e26ae11a25d3617d83bc32ecd8e /drivers/gpu/drm/bridge
parentdrm/bridge: Add I2C based driver for ps8622/ps8625 bridge (diff)
downloadlinux-8a7d56b371ffe52f14d7a987d612a274b534bdf1.tar.xz
linux-8a7d56b371ffe52f14d7a987d612a274b534bdf1.zip
drm/bridge: ps8622: Fix sparse warnings
The ps8622_attach and ps8522_driver symbols are never used outside this file, so they should be static. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm/bridge')
-rw-r--r--drivers/gpu/drm/bridge/ps8622.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/bridge/ps8622.c b/drivers/gpu/drm/bridge/ps8622.c
index 5474a3957dc5..e895aa7ea353 100644
--- a/drivers/gpu/drm/bridge/ps8622.c
+++ b/drivers/gpu/drm/bridge/ps8622.c
@@ -504,7 +504,7 @@ static const struct drm_connector_funcs ps8622_connector_funcs = {
.destroy = ps8622_connector_destroy,
};
-int ps8622_attach(struct drm_bridge *bridge)
+static int ps8622_attach(struct drm_bridge *bridge)
{
struct ps8622_bridge *ps8622 = bridge_to_ps8622(bridge);
int ret;
@@ -667,7 +667,7 @@ static const struct i2c_device_id ps8622_i2c_table[] = {
};
MODULE_DEVICE_TABLE(i2c, ps8622_i2c_table);
-struct i2c_driver ps8622_driver = {
+static struct i2c_driver ps8622_driver = {
.id_table = ps8622_i2c_table,
.probe = ps8622_probe,
.remove = ps8622_remove,