Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1670272 > unrolled thread

[PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor

Started byShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
First post2017-06-20 07:10 +0200
Last post2017-06-20 09:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com> - 2017-06-20 07:10 +0200
    Re: [PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor Cédric Le Goater <clg@kaod.org> - 2017-06-20 09:30 +0200

#1670272 — [PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor

FromShilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
Date2017-06-20 07:10 +0200
Subject[PATCH V2 2/2] hwmon: (ibmpowernv) Add current(A) sensor
Message-ID<tUjAo-4iD-47@gated-at.bofh.it>
This patch exports current(A) sensors in inband sensors copied to
main memory by OCC.

Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>
---
Changes from V1:
- Rebased on top of Cedric's patch to remove legay-compatible type for
  the current(A) sensor.

 drivers/hwmon/ibmpowernv.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c
index 6d8909c..9b11b13 100644
--- a/drivers/hwmon/ibmpowernv.c
+++ b/drivers/hwmon/ibmpowernv.c
@@ -50,6 +50,7 @@ enum sensors {
 	TEMP,
 	POWER_SUPPLY,
 	POWER_INPUT,
+	CURRENT,
 	MAX_SENSOR_TYPE,
 };
 
@@ -75,7 +76,8 @@ enum sensors {
 	{ "fan"   },
 	{ "temp"  },
 	{ "in"    },
-	{ "power" }
+	{ "power" },
+	{ "curr"  },
 };
 
 struct sensor_data {
-- 
1.8.3.1

[toc] | [next] | [standalone]


#1670375

FromCédric Le Goater <clg@kaod.org>
Date2017-06-20 09:30 +0200
Message-ID<tUlLQ-5AD-25@gated-at.bofh.it>
In reply to#1670272
On 06/20/2017 07:08 AM, Shilpasri G Bhat wrote:
> This patch exports current(A) sensors in inband sensors copied to
> main memory by OCC.
> 
> Signed-off-by: Shilpasri G Bhat <shilpa.bhat@linux.vnet.ibm.com>

Reviewed-by: Cédric Le Goater <clg@kaod.org>

Thanks,

C.

> ---
> Changes from V1:
> - Rebased on top of Cedric's patch to remove legay-compatible type for
>   the current(A) sensor.
> 
>  drivers/hwmon/ibmpowernv.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/hwmon/ibmpowernv.c b/drivers/hwmon/ibmpowernv.c
> index 6d8909c..9b11b13 100644
> --- a/drivers/hwmon/ibmpowernv.c
> +++ b/drivers/hwmon/ibmpowernv.c
> @@ -50,6 +50,7 @@ enum sensors {
>  	TEMP,
>  	POWER_SUPPLY,
>  	POWER_INPUT,
> +	CURRENT,
>  	MAX_SENSOR_TYPE,
>  };
>  
> @@ -75,7 +76,8 @@ enum sensors {
>  	{ "fan"   },
>  	{ "temp"  },
>  	{ "in"    },
> -	{ "power" }
> +	{ "power" },
> +	{ "curr"  },
>  };
>  
>  struct sensor_data {
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web