From patchwork Wed Nov 20 08:33:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13880862 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 D2AEB17108A for ; Wed, 20 Nov 2024 08:34:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091650; cv=none; b=SLk3ZXZv0Qn4PnHp7COR0q2RBkBXSLiNznJ468z1IXLHbDtv9tLdqMEF4t6EGA6M7VP1gSLfq6xnHkxM0Sb/L8OKu7Am630Y3pfGyes2LdamdDXqNe+2+Y1153A6j6vnUBdGwYmmFBCSILFM//MsQ2k2aXAcLLWak3UYX+jqWBA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091650; c=relaxed/simple; bh=8dDSC2Cj8KTxntQZ48l0qLtV4B5umxyboaTusTTTNtE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=HCTHEDGz2JaLe+qe9zggIVaGMMG2Q2UD9KTZKeAqeI+W2+GRCopOhzofWgHXr38TEE78Veg/mkG+Dka+xwPgD0GlwhjlGTjNP14zonGLaU3EEueA4+ynOGcHv1mcKD6f4EWVwXC0nFW3qZJIJtCfD3HcF4BnLweXchoDEN3wiW8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=Xvp8s0I+; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="Xvp8s0I+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=ELhM8SRHVwZjXbSVs7yXoFyzmHbryTxv7XCEG2ec0WQ=; b=Xvp8s0 I+8Zp4BTIiV7SkcanoqWna268X07qxKZ8wXB1Gfg6asuk4bNKZ2l0057rxKQuk10 7PXxwOtBOzqw99QaEXr5+z3xWDobtmosq+lNbKRqntT20t/XTXRkctyF7JC60N00 x/Xy2gU49rUq4IfZDUW0br0Gtl8eIDbNMP8RmBwzvk3Vj+qmvzTGEwR04yStgQF/ P/IIOHwCbcJlLJ4Ut9WknCuyx66FFYVeA4G8zmdnlJ6lXcYcVNR/LqPol7OP3F7f /EBffbQLjxAJK5fw7z60K4a8iYJsroFg4oQ1XMzUwEjF9BdZdDSANyIL4dHaM4Xl Fq8CGgsTTrUtHpgg== Received: (qmail 832249 invoked from network); 20 Nov 2024 09:34:03 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 20 Nov 2024 09:34:03 +0100 X-UD-Smtp-Session: l3s3148p1@xGMhA1QnwLIgAwDPXxznANR4Jedc6XSv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , =?utf-8?q?Carsten_Spie?= =?utf-8?q?=C3=9F?= , Jean Delvare , Guenter Roeck , Jonathan Corbet , Geert Uytterhoeven , Magnus Damm , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 1/3] hwmon: (isl28022) use proper path for DT bindings Date: Wed, 20 Nov 2024 09:33:50 +0100 Message-ID: <20241120083349.22226-6-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241120083349.22226-5-wsa+renesas@sang-engineering.com> References: <20241120083349.22226-5-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Vendor is "Renesas" not "ISL". Signed-off-by: Wolfram Sang --- Documentation/hwmon/isl28022.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/hwmon/isl28022.rst b/Documentation/hwmon/isl28022.rst index 8d4422a2dacd..a7920a884b9f 100644 --- a/Documentation/hwmon/isl28022.rst +++ b/Documentation/hwmon/isl28022.rst @@ -33,7 +33,7 @@ details. The shunt value in micro-ohms, shunt voltage range and averaging can be set with device properties. -Please refer to the Documentation/devicetree/bindings/hwmon/isl,isl28022.yaml +Please refer to the Documentation/devicetree/bindings/hwmon/renesas,isl28022.yaml for bindings if the device tree is used. The driver supports only shunt and bus continuous ADC mode at 15bit resolution. From patchwork Wed Nov 20 08:33:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13880861 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 D0321171650 for ; Wed, 20 Nov 2024 08:34:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091650; cv=none; b=ocHScluof0YPbMXt1T52B9DQNQBzDsJnsaAG3zCf1Mlmtqm/als6v9sWBrWFXVIsKJU7NHu76b0UvoE81jFnFlHlb+AL2iDsueqCBIVfjapd7dk8cSI09OWDAOBsk0O1xoqn/OZfbfd7PlIDlaCdMliltovSWT6p+6CZfZRE1DE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091650; c=relaxed/simple; bh=GRDqG9yY6Z32OOYsdvevy8HmejjBUPykoAD8smWEtKU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=taengj+FEVjHNo6dhlB+/AH8KH8BXXYPU7HwBRTkEDQH5ZR9Fb4jigUcJtrNQok+V1mCY4qVl6igU4tVyHlljPMMbYMmxnzqYacObjIuyS5c3zELLtbLrYDEb5dsKT+zmguVvvbHzUBcVjafdCYVw6+sLC5LsvvYfvz7d4J4plI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=M139WiQr; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="M139WiQr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; s=k1; bh=BzKhmpSdjWou+wACtFt1L+9aYWsfG8g74XVaa5mSLyc=; b=M139Wi QrWASRnXh/ERotb2z4380COf1jGcx/LqmRsQy+/Or1RlST7DlX/wmls7eSkY+NU+ o5HyRCHK32+RIQHyinBbjNYJJTztHAJGUoe1MkH19a2yFXTS9skJmuw2HzaSV/Wv 22R24EwuYuhh70GSeuAzmuyyCRh6aMNGU1PX0kfxYApqX9r6TlFYF1sZnrin8ZXH PkXlWYze19RasiLjavNQZ9/D1UBVj3ZEg9uxsFHrR8sEqobuPlFfJ2TRd8zg8XTL 1TwQIkvttMOFlcx+Yvf0xQur6apQv1FendmyoNwONZakcaD9diLh+tURcGAgQjfT 7Zo7vKgj3r+kfkjA== Received: (qmail 832297 invoked from network); 20 Nov 2024 09:34:04 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 20 Nov 2024 09:34:04 +0100 X-UD-Smtp-Session: l3s3148p1@MlEtA1QnyLIgAwDPXxznANR4Jedc6XSv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , =?utf-8?q?Carsten_Spie?= =?utf-8?q?=C3=9F?= , Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org Subject: [PATCH 2/3] hwmon: (isl28022) document shunt voltage channel Date: Wed, 20 Nov 2024 09:33:51 +0100 Message-ID: <20241120083349.22226-7-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241120083349.22226-5-wsa+renesas@sang-engineering.com> References: <20241120083349.22226-5-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 During the upstreaming process, the driver has been extended to report the shunt voltage as well. Document that. Signed-off-by: Wolfram Sang --- Documentation/hwmon/isl28022.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/hwmon/isl28022.rst b/Documentation/hwmon/isl28022.rst index a7920a884b9f..273ce5460135 100644 --- a/Documentation/hwmon/isl28022.rst +++ b/Documentation/hwmon/isl28022.rst @@ -48,6 +48,7 @@ The following attributes are supported. All attributes are read-only. ======================= ======================================================= in0_input bus voltage (milli Volt) +in1_input shunt voltage (milli Volt) curr1_input current (milli Ampere) power1_input power (micro Watt) From patchwork Wed Nov 20 08:33:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 13880864 X-Patchwork-Delegate: geert@linux-m68k.org Received: from mail.zeus03.de (zeus03.de [194.117.254.33]) (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 6CB0B175D3A for ; Wed, 20 Nov 2024 08:34:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091652; cv=none; b=OzTxcaajvQsezF53ga9kW7i+yl/EOSnpPFWTVg3E9znzjabvwQtaqxtkzuwqlIH3yNU8xJ9c0bDuMK+MKOqM0ZGUH1hW42xKhvLqR0GxMs0nqsHkmn3Vx6uHDUXRVvcId/NKUk+6+cr9CZj8V7CKIjBqxY5TeM/cuVJ10D+2D9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091652; c=relaxed/simple; bh=p5wNypndlNtZ9iYw46NAdmF91h1AuzQSfvow7/G4AlY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NgLMObUTR3mSvMAJA4/p5LqIvykT7W84RhkLD2wG3WWN+K4pQN3PHCicXXgt9cjCmLW5frC2/NtFUnLCDK/5QEZupQp65AFk3rEM+kvYAzD2hCmO4cQwkQD511B8cIxpLZxYLTYy1VfqVphrKGWi/pacrnkVqSNDhDOfuo0qiZE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=eJ36Z6k0; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="eJ36Z6k0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=k1; bh=flniR+Y5Awg7qv7rHZn0LlVf+5Q eXyXgrD4+/TW/z2o=; b=eJ36Z6k06n+h+aiqX/i9U/JX+b++3B9dvrDDvFxbBMb ehHlYj5M6X0y+kKgiOF5DxRTwRAt7x2qfpGo4r/27bHPtKHvtZ0kxjefuWYYVr+o Ykf38wvu/87LyUa0f1nSWGK50esfUksBnMXoTrXxv31jwzdS0+GKq/WbY9CPNCSY tYx4qeN7/zC96E2U9MYItWZbaUH12QkYLiQGvao/Dhhbtc6Xgv68PtZ6a0WrOZXd hCwpN14FQ9wx2NTspTKFMIONUp7kmXKGvxlmGaXbc7/Qg5nSdXSbj7JOfJWsHKvE HuQHGNbEy0X0E/dS9HtsQczaMOOOEOTe9aV/Sy2D88Q== Received: (qmail 832337 invoked from network); 20 Nov 2024 09:34:05 +0100 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 20 Nov 2024 09:34:05 +0100 X-UD-Smtp-Session: l3s3148p1@bXw5A1QnzrIgAwDPXxznANR4Jedc6XSv From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , =?utf-8?q?Carsten_Spie?= =?utf-8?q?=C3=9F?= , Jean Delvare , Guenter Roeck , linux-hwmon@vger.kernel.org Subject: [PATCH 3/3] hwmon: (isl28022) apply coding style to module init/exit Date: Wed, 20 Nov 2024 09:33:52 +0100 Message-ID: <20241120083349.22226-8-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241120083349.22226-5-wsa+renesas@sang-engineering.com> References: <20241120083349.22226-5-wsa+renesas@sang-engineering.com> Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Function declarations can be in one line. module_init|exit macros should be tied to the function. Signed-off-by: Wolfram Sang --- drivers/hwmon/isl28022.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/hwmon/isl28022.c b/drivers/hwmon/isl28022.c index f9edcfd164c2..7748f6b8a534 100644 --- a/drivers/hwmon/isl28022.c +++ b/drivers/hwmon/isl28022.c @@ -506,8 +506,7 @@ static struct i2c_driver isl28022_driver = { .id_table = isl28022_ids, }; -static int __init -isl28022_init(void) +static int __init isl28022_init(void) { int err; @@ -519,15 +518,13 @@ isl28022_init(void) debugfs_remove_recursive(isl28022_debugfs_root); return err; } +module_init(isl28022_init); -static void __exit -isl28022_exit(void) +static void __exit isl28022_exit(void) { i2c_del_driver(&isl28022_driver); debugfs_remove_recursive(isl28022_debugfs_root); } - -module_init(isl28022_init); module_exit(isl28022_exit); MODULE_AUTHOR("Carsten Spieß ");