Skip to content

Commit

Permalink
drm/bridge: ps8622: Fix sparse warnings
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding committed Mar 24, 2015
1 parent b2ea877 commit 8a7d56b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/gpu/drm/bridge/ps8622.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 8a7d56b

Please sign in to comment.