Skip to content

Commit eff245c

Browse files
Shubhrajyoti DJean Delvare
authored andcommitted
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>
1 parent 6782002 commit eff245c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/i2c/i2c-dev.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ static int i2cdev_detach_adapter(struct device *dev, void *dummy)
579579
return 0;
580580
}
581581

582-
int i2cdev_notifier_call(struct notifier_block *nb, unsigned long action,
582+
static int i2cdev_notifier_call(struct notifier_block *nb, unsigned long action,
583583
void *data)
584584
{
585585
struct device *dev = data;

0 commit comments

Comments
 (0)