From: Jonas Rebmann Date: Tue, 3 Mar 2026 11:07:01 +0000 (+0100) Subject: hwmon: (ina2xx) clean up unused define and outdated comment X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=932ca40b10e94923dc6447f8e9026838793fd188;p=thirdparty%2Fkernel%2Flinux.git hwmon: (ina2xx) clean up unused define and outdated comment The list of supported chips in the header is incomplete and contains no other information not readily available. Remove the list and instead hint that the chips supported by this driver have 219/226 compatible register layout [unlike the ones supported by e.g. ina238]. Remove the unused INA226_DIE_ID define. Signed-off-by: Jonas Rebmann Link: https://lore.kernel.org/r/20260303-ina234-shift-v1-1-318c33ac4480@pengutronix.de [groeck: macro -> define in commit message] Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c index 836e15a5a780a..6a2cebbb9f157 100644 --- a/drivers/hwmon/ina2xx.c +++ b/drivers/hwmon/ina2xx.c @@ -1,22 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Driver for Texas Instruments INA219, INA226 power monitor chips - * - * INA219: - * Zero Drift Bi-Directional Current/Power Monitor with I2C Interface - * Datasheet: https://www.ti.com/product/ina219 - * - * INA220: - * Bi-Directional Current/Power Monitor with I2C Interface - * Datasheet: https://www.ti.com/product/ina220 - * - * INA226: - * Bi-Directional Current/Power Monitor with I2C Interface - * Datasheet: https://www.ti.com/product/ina226 - * - * INA230: - * Bi-directional Current/Power Monitor with I2C Interface - * Datasheet: https://www.ti.com/product/ina230 + * Driver for Texas Instruments INA219, INA226 and register-layout compatible + * current/power monitor chips with I2C Interface * * Copyright (C) 2012 Lothar Felten * Thanks to Jan Volkering @@ -49,7 +34,6 @@ /* INA226 register definitions */ #define INA226_MASK_ENABLE 0x06 #define INA226_ALERT_LIMIT 0x07 -#define INA226_DIE_ID 0xFF /* SY24655 register definitions */ #define SY24655_EIN 0x0A