hwmon: add POWER-Z driver
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 2 Sep 2023 07:47:01 +0000 (09:47 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 27 Oct 2023 14:27:23 +0000 (07:27 -0700)
commit4381a36abdf1c5c0323c1c51f869dc000115eb20
tree450a3c877d7106ecbaef6c457b8409b006ec79a6
parent9da2901c47332b030ea4d2a2302bc7c0b83fc67c
hwmon: add POWER-Z driver

POWER-Z is a series of devices to monitor power characteristics of
USB-C connections and display those on a on-device display.
Some of the devices, notably KM002C and KM003C, contain an additional
port which exposes the measurements via USB.

This is a driver for this monitor port.

It was developed and tested with the KM003C.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20230902-powerz-v4-1-7ec2c1440687@weissschuh.net
[groeck:
 Release urb after hwmon registration error;
 Move priv->status initialization to correct place before reinit_completion
 ]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/index.rst
Documentation/hwmon/powerz.rst [new file with mode: 0644]
MAINTAINERS
drivers/hwmon/Kconfig
drivers/hwmon/Makefile
drivers/hwmon/powerz.c [new file with mode: 0644]