From: anton Date: Wed, 28 Jul 2021 09:56:54 +0000 (+0000) Subject: Use a more descriptive name for the raw sensor which reflects the number X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=830c96fc52bed6f4c25eb85535b7bc4a6071b6a8;p=openbsd Use a more descriptive name for the raw sensor which reflects the number of battery levels the device can report. --- 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 @@ -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);