HomeFreeBSD

htu21: don't needlessly bother hardware when measurements are not needed

Description

htu21: don't needlessly bother hardware when measurements are not needed

sysctl(8) first queries a sysctl to get a size of its value even if the
sysctl is of a fixed size, e.g. it has an integer type.
Only after that sysctl(8) queries an actual value of the sysctl.

Previosuly the driver would needlessly read a sensor in the first step.

MFC after: 1 week

Details

Provenance
avgAuthored on Nov 6 2021, 4:47 PM
Parents
rGc01a46d4acab: camcontrol: dump received data for MMC command even if it is unknown
Branches
Unknown
Tags
Unknown