Skip to content

Commit

Permalink
i2c: Make i2cdev_notifier_call static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shubhrajyoti D authored and Jean Delvare committed Nov 23, 2011
1 parent 6782002 commit eff245c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/i2c/i2c-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit eff245c

Please sign in to comment.