mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-18 18:43:59 +08:00
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>
This commit is contained in:
parent
67820021dc
commit
eff245c82f
@ -579,7 +579,7 @@ static int i2cdev_detach_adapter(struct device *dev, void *dummy)
|
|||||||
return 0;
|
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)
|
void *data)
|
||||||
{
|
{
|
||||||
struct device *dev = data;
|
struct device *dev = data;
|
||||||
|
Loading…
Reference in New Issue
Block a user