From nobody Thu Apr 9 19:20:14 2026 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5896C3EB7EF for ; Tue, 3 Mar 2026 11:07:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772536030; cv=none; b=ZWX9Nvo+AjVlyGa4LKa8BzkTS33o1uaqUeWfSj5YCroP5BytgfcT+aVFwPST6waDjgMy8oHOCWRI5HgnLvK4UZA6p1HlnhvIFctvN8IiJLdwsoblo4fRjzPDtnz8L8GHMOqYis4yP0YdfdGTiLh7x0wVn4M10EFT6QfOBHjxduw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772536030; c=relaxed/simple; bh=mxGBOMpgZHWodrnqfxlO+PQbfE3hD/FLCR9bbQF/8to=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=CVA6V4LLhYPIrd74p+ktwPleHS1wBbqDlRHSq34o/Q6CjZh1Y+8SmExH3r+EC7naDkxlp4jtByAs1TKojwCt22iQWQ985Qmy9q3US1xZDIeKCNPNM9VJu62h4WrkTItY1L50ox25rbl5i3C1HLYMJN1uKSacqjwh2bIdigQ5nRk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from dude04.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::ac]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1vxNak-0002HT-JH; Tue, 03 Mar 2026 12:07:06 +0100 From: Jonas Rebmann Date: Tue, 03 Mar 2026 12:07:01 +0100 Subject: [PATCH 1/2] hwmon: (ina2xx) clean up unused macro and outdated comment Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260303-ina234-shift-v1-1-318c33ac4480@pengutronix.de> References: <20260303-ina234-shift-v1-0-318c33ac4480@pengutronix.de> In-Reply-To: <20260303-ina234-shift-v1-0-318c33ac4480@pengutronix.de> To: Guenter Roeck Cc: linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, Jonas Rebmann X-Mailer: b4 0.15-dev-7abec X-Developer-Signature: v=1; a=openpgp-sha256; l=1790; i=jre@pengutronix.de; h=from:subject:message-id; bh=mxGBOMpgZHWodrnqfxlO+PQbfE3hD/FLCR9bbQF/8to=; b=owGbwMvMwCV2ZcYT3onnbjcwnlZLYshcduDmO9Z2rqKTX769/f5JKKsu1O23LreKtJmi8Idct tVdUsn6HaUsDGJcDLJiiiyxanIKQsb+180q7WJh5rAygQxh4OIUgIksXcHIcFV4z6TQOn/BR9c+ ndigdvX+bt4Dq0t+3jttHtif6LvKlIORYcnjl4sDQ+tnagb4X7m10XV3tVzFtNi534vuz/pzZo+ YNicA X-Developer-Key: i=jre@pengutronix.de; a=openpgp; fpr=0B7B750D5D3CD21B3B130DE8B61515E135CD49B5 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::ac X-SA-Exim-Mail-From: jre@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org 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 macro. Signed-off-by: Jonas Rebmann --- drivers/hwmon/ina2xx.c | 20 ++------------------ 1 file changed, 2 insertions(+), 18 deletions(-) diff --git a/drivers/hwmon/ina2xx.c b/drivers/hwmon/ina2xx.c index 836e15a5a780..6a2cebbb9f15 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 compati= ble + * 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 =20 /* SY24655 register definitions */ #define SY24655_EIN 0x0A --=20 2.51.2.535.g419c72cb8a