]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hwmon: (pmbus/tps25990) Add initial support
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 2 Dec 2024 10:28:02 +0000 (11:28 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 14 Dec 2024 16:00:44 +0000 (08:00 -0800)
commit339bca4ffdaa7267b1597e634ac6002a133ad7b8
treeb248bcf6e895ec1bd1ea3a76f7fa8096f92e25ef
parent83bed3c159f44bf2e205875feb8d932bbcf1b656
hwmon: (pmbus/tps25990) Add initial support

Add initial support for the Texas Instruments TPS25990 eFuse.
This adds the basic PMBUS telemetry support for the device.

From Karol Przybylski:
  The tps25990_read_word_data function contains a block of unreachable code
  caused by the syntactic structure in the PMBUS_VIRT_READ_IIN_MAX case.

  Specifically, the return TPS25990_READ_IIN_PEAK; statement immediately
  exits the function, making the next lines unreachable.

  This patch removes the return statement, leaving the expected handling.
  Discovered in coverity: CID 1602227

Tested-by: Vaishnav Achath <vaishnav.a@ti.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
[groeck: Adjust to MODULE_IMPORT_NS API change]
[karprzy7@gmail.com: Fix unreachable code in tps25990_read_word_data]
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/hwmon/index.rst
Documentation/hwmon/tps25990.rst [new file with mode: 0644]
MAINTAINERS
drivers/hwmon/pmbus/Kconfig
drivers/hwmon/pmbus/Makefile
drivers/hwmon/pmbus/tps25990.c [new file with mode: 0644]