diff options
author | Shubhrajyoti D <shubhrajyoti@ti.com> | 2011-11-23 11:33:07 +0100 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2011-11-23 11:33:07 +0100 |
commit | eff245c82f115059648cdce95dd68bb940f2b006 (patch) | |
tree | 6749587fc2b72b646bfa99866b7baf8eb37831a1 /drivers/i2c | |
parent | i2c: Delete ANY_I2C_BUS (diff) | |
download | linux-eff245c82f115059648cdce95dd68bb940f2b006.tar.xz linux-eff245c82f115059648cdce95dd68bb940f2b006.zip |
i2c: Make i2cdev_notifier_call static
The function i2cdev_notifier_call is used only in i2c-dev file
making it static.
Also removes the following sparse warning
drivers/i2c/i2c-dev.c:582:5: warning: symbol 'i2cdev_notifier_call'
was not declared. Should it be static?
Signed-off-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index c90ce50b619f..57a45ce84b2d 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c @@ -579,7 +579,7 @@ static int i2cdev_detach_adapter(struct device *dev, void *dummy) return 0; } -int i2cdev_notifier_call(struct notifier_block *nb, unsigned long action, +static int i2cdev_notifier_call(struct notifier_block *nb, unsigned long action, void *data) { struct device *dev = data; |