summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2021-07-28 09:56:55 +0000
committeranton <anton@cvs.openbsd.org>2021-07-28 09:56:55 +0000
commit8892b705e2bece0e100096811cf0b54242341039 (patch)
treecd9340ad4106d503b21829493bc24761d1e128a7 /sys
parent70efd69d557e07d5ee22396a8d823e4ca8dc07a7 (diff)
Use a more descriptive name for the raw sensor which reflects the number
of battery levels the device can report.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/uhidpp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/uhidpp.c b/sys/dev/usb/uhidpp.c
index d2748330f95..c5de0e59d5e 100644
--- a/sys/dev/usb/uhidpp.c
+++ b/sys/dev/usb/uhidpp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uhidpp.c,v 1.15 2021/07/28 09:55:58 anton Exp $ */
+/* $OpenBSD: uhidpp.c,v 1.16 2021/07/28 09:56:54 anton Exp $ */
/*
* Copyright (c) 2021 Anton Lindqvist <anton@openbsd.org>
@@ -622,7 +622,7 @@ uhidpp_device_connect(struct uhidpp_softc *sc, struct uhidpp_device *dev)
sensor_attach(&sc->sc_sensdev, sens);
sens = &dev->d_battery.b_sens[1];
- strlcpy(sens->desc, "battery levels", sizeof(sens->desc));
+ strlcpy(sens->desc, "number of battery levels", sizeof(sens->desc));
sens->type = SENSOR_INTEGER;
sens->value = dev->d_battery.b_nlevels;
sensor_attach(&sc->sc_sensdev, sens);