提交 43ad3819 编写于 作者: G Geordan Neukum 提交者: Greg Kroah-Hartman

staging: kpc2000: kpc_i2c: add static qual to local symbols in kpc_i2c.c

kpc_i2c.c declares:
  - two functions
    - pi2c_probe()
    - pi2c_remove()
  - one struct
    - i2c_plat_driver_i
which are local to the file, yet missing the static qualifier. Add the
static qualifier to these symbols.
Signed-off-by: NGeordan Neukum <gneukum1@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 7bd49a49
...@@ -579,7 +579,7 @@ static const struct i2c_algorithm smbus_algorithm = { ...@@ -579,7 +579,7 @@ static const struct i2c_algorithm smbus_algorithm = {
/******************************** /********************************
*** Part 2 - Driver Handlers *** *** Part 2 - Driver Handlers ***
********************************/ ********************************/
int pi2c_probe(struct platform_device *pldev) static int pi2c_probe(struct platform_device *pldev)
{ {
int err; int err;
struct i2c_device *priv; struct i2c_device *priv;
...@@ -626,7 +626,7 @@ int pi2c_probe(struct platform_device *pldev) ...@@ -626,7 +626,7 @@ int pi2c_probe(struct platform_device *pldev)
return 0; return 0;
} }
int pi2c_remove(struct platform_device *pldev) static int pi2c_remove(struct platform_device *pldev)
{ {
struct i2c_device *lddev; struct i2c_device *lddev;
...@@ -644,7 +644,7 @@ int pi2c_remove(struct platform_device *pldev) ...@@ -644,7 +644,7 @@ int pi2c_remove(struct platform_device *pldev)
return 0; return 0;
} }
struct platform_driver i2c_plat_driver_i = { static struct platform_driver i2c_plat_driver_i = {
.probe = pi2c_probe, .probe = pi2c_probe,
.remove = pi2c_remove, .remove = pi2c_remove,
.driver = { .driver = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册