git: 80bac43c226b - main - i2c/sensor/w83793g: Fix unused function warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Aug 2026 07:00:25 UTC
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=80bac43c226bf6c8e066c57678983426ad4627ef
commit 80bac43c226bf6c8e066c57678983426ad4627ef
Author: Emmanuel Vadot <manu@FreeBSD.org>
AuthorDate: 2026-08-27 07:00:03 +0000
Commit: Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2026-08-27 07:00:21 +0000
i2c/sensor/w83793g: Fix unused function warning
w83793g_writereg is unused so silence it.
Fixes: cd3cc6e910c0f ("i2c/sensors: Add driver for W83793 hardware monitor")
---
sys/dev/iicbus/sensor/w83793g.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/dev/iicbus/sensor/w83793g.c b/sys/dev/iicbus/sensor/w83793g.c
index 772384aa57a0..99ee584eec26 100644
--- a/sys/dev/iicbus/sensor/w83793g.c
+++ b/sys/dev/iicbus/sensor/w83793g.c
@@ -154,11 +154,13 @@ w83793g_readreg(device_t dev, int reg, uint8_t *output)
return (iicdev_readfrom(dev, reg, output, sizeof(*output), IIC_WAIT));
}
+#if 0
static int
w83793g_writereg(device_t dev, int reg, uint8_t *output)
{
return (iicdev_writeto(dev, reg, output, sizeof(*output), IIC_WAIT));
}
+#endif
static bool
temp_enabled(struct w83793g_softc *sc, int sensor)