]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
i2c: Make i2cdev_notifier_call static
authorShubhrajyoti D <shubhrajyoti@ti.com>
Wed, 23 Nov 2011 10:33:07 +0000 (11:33 +0100)
committerJean Delvare <khali@endymion.delvare>
Wed, 23 Nov 2011 10:33:07 +0000 (11:33 +0100)
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>
drivers/i2c/i2c-dev.c

index c90ce50b619f7b483b85483a24457a8cab73f3c2..57a45ce84b2d42f893cf45fb6e876bc1904bcfde 100644 (file)
@@ -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;