Guenter Roeck
0bcd01f757
hwmon: Introduce 64-bit energy attribute support
...
Many chips require 64-bit variables to display the accumulated energy,
even more so since the energy units are micro-Joule. Add new sensor type
"energy64" to support reporting the chip energy as 64-bit values.
Changing the entire hardware monitoring API is not feasible, and it is only
really necessary to support reading 64-bit values for the "energyX_input"
attribute. For this reason, keep the API as-is and use type casts on both
ends to pass 64-bit pointers when reading the accumulated energy. On the
write side (which is only useful for the energyX_enable attribute), keep
passing the written value as long.
Reviewed-by: Chris Packham <chris.packham@alliedtelesis.co.nz >
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz > # INA780
Signed-off-by: Guenter Roeck <linux@roeck-us.net >
2025-09-07 16:33:48 -07:00
..
2025-07-29 11:42:31 -07:00
2025-08-07 10:07:06 +02:00
2025-07-31 01:33:20 +02:00
2025-07-27 01:41:21 -07:00
2025-07-29 12:27:40 -04:00
2025-07-31 11:50:25 -07:00
2025-07-31 13:43:02 -07:00
2025-08-18 09:55:05 +02:00
2025-08-03 03:28:52 +02:00
2025-07-31 16:29:46 -07:00
2025-08-02 12:07:09 -07:00
2025-07-31 13:43:02 -07:00
2025-08-09 07:20:44 +03:00
2025-07-31 13:16:09 -07:00
2025-07-29 20:21:54 -07:00
2025-08-22 17:23:15 -07:00
2025-07-31 11:28:03 -04:00
2025-07-31 11:28:03 -04:00
2025-07-28 16:14:18 -07:00
2025-08-21 07:11:11 -06:00
2025-07-31 11:30:05 -07:00
2025-07-31 11:30:05 -07:00
2025-07-31 18:23:53 -07:00
2025-07-31 18:23:53 -07:00
2025-08-01 15:47:06 -07:00
2025-07-29 17:19:35 -07:00
2025-07-29 17:19:35 -07:00
2025-08-04 14:15:14 +02:00
2025-08-18 14:48:16 +02:00
2025-07-31 14:57:54 -07:00
2025-07-29 17:42:52 -07:00
2025-08-20 22:23:44 +08:00
2025-07-31 16:52:32 -07:00
2025-07-31 14:57:54 -07:00
2025-07-29 12:15:39 -07:00
2025-08-11 13:05:38 +02:00
2025-08-09 18:10:01 +03:00
2025-07-31 10:20:04 -04:00
2025-08-02 12:06:12 -07:00
2025-08-11 16:16:36 +02:00
2025-07-30 09:58:50 -07:00
2025-07-31 11:28:03 -04:00
2025-08-11 22:22:33 +09:00
2025-07-29 17:19:29 -07:00
2025-07-31 14:57:54 -07:00
2025-08-04 16:27:21 -07:00
2025-07-28 18:14:38 +02:00
2025-09-07 16:33:48 -07:00
2025-07-25 15:29:58 -07:00
2025-07-29 17:19:35 -07:00
2025-07-28 16:30:12 -07:00
2025-08-02 12:06:10 -07:00
2025-07-31 12:43:08 -07:00
2025-07-31 15:00:41 -06:00
2025-08-11 17:26:38 +02:00
2025-08-19 16:35:56 -07:00
2025-08-01 09:46:24 -07:00
2025-07-30 17:14:01 -07:00
2025-08-13 17:18:43 +02:00
2025-08-27 22:45:43 -07:00
2025-07-31 12:56:21 +09:00
2025-08-26 10:47:03 +03:00
2025-08-19 16:35:57 -07:00
2025-07-31 14:57:54 -07:00
2025-08-05 16:02:07 +03:00
2025-08-02 12:06:11 -07:00
2025-08-06 07:32:52 +03:00
2025-08-06 07:32:52 +03:00
2025-07-30 17:14:01 -07:00
2025-08-01 15:47:06 -07:00
2025-08-12 14:43:05 +02:00
2025-08-15 15:56:49 +02:00
2025-08-19 11:16:02 -07:00
2025-08-02 12:06:08 -07:00
2025-07-31 14:57:54 -07:00
2025-07-30 16:23:12 -07:00
2025-07-29 11:45:39 -05:00
2025-07-31 16:11:43 -05:00
2025-08-27 22:45:44 -07:00
2025-08-27 22:45:44 -07:00
2025-09-02 16:23:13 -07:00
2025-07-29 11:42:31 -07:00
2025-07-31 21:39:01 -07:00
2025-07-31 14:57:54 -07:00
2025-08-03 15:03:04 -07:00
2025-08-02 12:06:11 -07:00
2025-07-28 16:47:34 -04:00
2025-08-03 16:23:09 -07:00
2025-08-07 06:30:17 -06:00
2025-08-17 05:57:47 -07:00
2025-07-28 18:20:32 -07:00
2025-08-21 17:47:57 -07:00
2025-07-29 13:00:20 -07:00
2025-08-04 10:54:36 -07:00
2025-07-30 19:26:49 -07:00
2025-09-03 11:55:11 +02:00
2025-07-28 18:18:16 -07:00
2025-07-31 10:20:10 -04:00
2025-07-31 10:20:11 -04:00
2025-07-29 14:46:07 -04:00
2025-07-29 14:46:07 -04:00
2025-08-05 15:41:14 -06:00
2025-08-05 15:41:14 -06:00
2025-08-26 03:38:10 -04:00
2025-08-01 09:11:09 -04:00
2025-08-01 14:17:48 -07:00
2025-08-27 22:45:44 -07:00
2025-08-01 09:11:08 -04:00
2025-08-02 12:01:37 -07:00