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: 13880868 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 D29FA166F3A 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=1732091651; cv=none; b=Vw1jQZeU6X34d+6BReUHOdwllDhBB8Aa2YnL3A4Q6i86QHQ3URsX1/F39BvDNgIJhvI2r7BQyWg/ox8URwELRBqkrMWWUnbz+jiCNT+8hfGR0/0R6SEZnjq4uwTL4+Ns4nQ17lLEFhrBLezADOY3kO4cb8QYBsj9Ty/0/PMq3xU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091651; c=relaxed/simple; bh=8dDSC2Cj8KTxntQZ48l0qLtV4B5umxyboaTusTTTNtE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Us+fUBgcoMxeg9hCNYXC/Il2jXcKEC3y+IYe9oVt9h7LXHndsd/HYzfdDOhTz778YI+F2pvfFqjaZDkv8VupoKRNkErDrOfLw+i7DNeUhXEM37wfasOYApvG2eVTg2tj6ajGV4oSxsAiyjtsCfyG7Y7tACToKRII+oKBb+tO7Wg= 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-hwmon@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: 13880869 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 4A2AE8615A 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=1732091651; cv=none; b=G/+xXvps0KEy5QfetQXUpjl9QSI6q9jKN6R9PbssXVR2H1sKCXJkWsGXp3veNEN7KmtV8Mi6/7w9K1xLody+O16D89BITWN4Sfy3FA8Vteh1KD+Wfny1wH/kkOCa2PiM/Lk444up9Y6o1/8qavg7eCL+bmMlh4Twj41x1etgwDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091651; c=relaxed/simple; bh=GRDqG9yY6Z32OOYsdvevy8HmejjBUPykoAD8smWEtKU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q7scjj9TwXTvhlIGUcLpl4e1/tWSF8dhdr5RudnTj5emI3DsYGxJAWcrIojO0O8xZRTh9TkjuLr5pP9VTQbBEYrUGvJmcpc4A8zSOjdA1CfBJK52FSob4lVbxvTxLDzuL8ocx+I/snbQxJMcovN0zbcJ186nIEFHuQW9aRF7FGg= 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-hwmon@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: 13880870 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 6AC77848C 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=1732091651; cv=none; b=bRUzDnR4bLoNEX/NGZ75MhSo9iDefDGzLonI4ZFNcMS6Y+k9q/e84FBkeHHFezwnVjkzlqMZ5TvrZAg1xcFYOXz1MMVV2f43cmTbg/kSJ1RgzVgteTMnjlFugmhL7g/6O9ROVg8a4khHN22HIS1DwzwT2jTglgFdw3XJtpaiUK0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732091651; c=relaxed/simple; bh=p5wNypndlNtZ9iYw46NAdmF91h1AuzQSfvow7/G4AlY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=QWLiI+JAFgCpbpu7aGsDrBUcrKUaXi3mv5ED6TnL62efYoKQcnaddbKm/BCcNTNtJ5ib+z0+3x2MNv4svBwr7itTI/bMEXdIDj9+t3g2qeQjBHIRpfFcTzW0xp5ex64lH3W8y+YA2zJeXE18O6O09pAj6Y1wXcw5o1vfpqxa7/Q= 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-hwmon@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ß ");