summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorZaixiang Xu <zaixiang.xu.dev@gmail.com>2026-07-13 15:45:58 +0800
committerGuenter Roeck <linux@roeck-us.net>2026-08-10 08:59:41 -0700
commit75186ab25c4a31cec5990d0088160acfc6a178ff (patch)
treefcf9a74ca86ca16854e016391638298d816dda29 /scripts/stackusage
parent71b99f4242b521675790b36596b29dc969616b84 (diff)
hwmon: (sht3x) Add devicetree support
Add an of_device_id table to support devicetree based instantiation of the supported sensors. The devicetree binding models all higher accuracy parts with a fallback to the base part of their group, so only the two base compatibles need to be listed. The match data distinguishes the humidity and temperature parts (SHT3x) from the temperature-only parts (STS3x), which require different configuration. Start enum sht3x_chips at 1: with sht3x equal to 0, the OF match data for the SHT devices would be NULL, causing i2c_get_match_data() to fall back to i2c_device_id name matching, which fails for devicetree names. The devices would then only work because the resulting chip id 0 happens to equal sht3x. Non-zero match data avoids relying on that coincidence. Signed-off-by: Zaixiang Xu <zaixiang.xu.dev@gmail.com> Link: https://lore.kernel.org/r/20260713074559.12196-4-zaixiang.xu.dev@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions