summaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorAntony Pavlov <antonynpavlov@gmail.com>2019-01-09 23:24:25 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-10 09:33:15 +0100
commit14e53b18ac8c79311394f2f699e3565e35f7f13c (patch)
tree029f2ab6705247cb03d73f954e16374f81e63d4a /drivers/w1
parent6c94c5945ca4dea0faed8081a6e426d45d7aa0a7 (diff)
downloadbarebox-14e53b18ac8c79311394f2f699e3565e35f7f13c.tar.gz
barebox-14e53b18ac8c79311394f2f699e3565e35f7f13c.tar.xz
w1: fix "no previous prototype for 'w1_found'" warning
The patch fixes the following compiler's warning: drivers/w1/w1.c:459:6: warning: no previous prototype for ‘w1_found’ [-Wmissing-prototypes] void w1_found(struct w1_bus *bus, u64 rn) ^~~~~~~~ Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/w1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index 694ffa853e..f74046c0b7 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -456,7 +456,7 @@ int w1_driver_register(struct w1_driver *drv)
return register_driver(&drv->drv);
}
-void w1_found(struct w1_bus *bus, u64 rn)
+static void w1_found(struct w1_bus *bus, u64 rn)
{
struct w1_device *dev;
u64 tmp = be64_to_cpu(rn);