i2c/sensor/w83793g: Fix unused function warningw83793g_writereg is unused so silence it.Fixes: cd3cc6e910c0f ("i2c/sensors: Add driver for W83793 hardware monitor")
i2c/sensors: Add driver for W83793 hardware monitorThe Winbond/Nuvoton W83793G system monitor chip includes many featuresnot currently supported by this driver. The following are currentlysuppor
i2c/sensors: Add driver for W83793 hardware monitorThe Winbond/Nuvoton W83793G system monitor chip includes many featuresnot currently supported by this driver. The following are currentlysupported:* Up to 6 temperature sensors, 4 of which have 10-bit resolution (8.2),two with 8-bit resolution (no decimal component)* Up to 12 fans - Fans 0-4 (1-5 on the datasheet) are always enabled. The remaining 7 fans are individually enabled.* Multiple voltage sensors, reading up to 10 voltage sources. Sysctls are labeled to match the datasheet.* Chassis open detection.The W83793AG is a feature-reduced version, which lacks 3 thermal diodesand 2 voltage monitors. Since there is no way to tell the differencebetween the W83793AG and W83793G programmatically, sensors reported onthe W83793AG will report strange values.Temperature sensors and 7 of the fans can be individually enabled on thechip, but currently not configured by this driver. The driver onlyreports what was configured by the firmware. Additionally, this drivernumbers the sensors and fans according to the datasheet, so even if, forinstance, fan 8 is disabled, it would skip from fan 7 to fan 9, it doesnot renumber. This makes it easier to follow for hardware debuggingpurposes.Missing features:* Smart Fan support* Fan PWM control* ASF (Alert Standard Format)Only Bank 0 registers are used at this time.Reviewed by: adrianDifferential Revision: https://reviews.freebsd.org/D56776
show more ...
chore: replace {0, 0} with {DEV,KOBJ}METHOD_ENDBoth of the aforementioned macros have been present in FreeBSDfor well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for`DEVMETHOD_END`.Adapt all
chore: replace {0, 0} with {DEV,KOBJ}METHOD_ENDBoth of the aforementioned macros have been present in FreeBSDfor well over a decade: 2009 for `KOBJMETHOD_END`; 2011 for`DEVMETHOD_END`.Adapt all hardcoded references of `{0, 0}` with `DEVMETHOD_END`and `KOBJMETHOD_END` as appropriate. This helps ensure thatfuture adaptations to drivers following patterns documentedin driver(9) can be made more easily/without issue.MFC after: 1 weekDifferential Revision: https://reviews.freebsd.org/D55414
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remov
sys: Automated cleanup of cdefs and other formattingApply the following automated changes to try to eliminateno-longer-needed sys/cdefs.h includes as well as now-emptyblank lines in a row.Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/Remove /\n+#if.*\n#endif.*\n+/Remove /^#if.*\n#endif.*\n/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/Sponsored by: Netflix
iicbus: Move i2c sensors drivers into new sensor subdirectoryNo reason that they should live directly under iicbusSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://
iicbus: Move i2c sensors drivers into new sensor subdirectoryNo reason that they should live directly under iicbusSponsored by: Beckhoff Automation GmbH & Co. KGDifferential Revision: https://reviews.freebsd.org/D41913