summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorOlof Johansson <olof@lixom.net>2019-06-17 04:54:11 -0700
committerOlof Johansson <olof@lixom.net>2019-06-17 04:54:11 -0700
commitdf767c0a437c9094ca2d79d37c1c5cf559039f53 (patch)
tree37a0b624989bd727ed60cc6025f95ba6b1687e00 /include/linux
parentc3bd15a0786ef7e32482a7dced21d79286b6f36c (diff)
parentac778e62634eee0685b622605b063a49edf2f2d1 (diff)
downloadlinux-stable-df767c0a437c9094ca2d79d37c1c5cf559039f53.tar.gz
linux-stable-df767c0a437c9094ca2d79d37c1c5cf559039f53.tar.bz2
linux-stable-df767c0a437c9094ca2d79d37c1c5cf559039f53.zip
Merge tag 'scmi-updates-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into arm/drivers
ARM SCMI updates/fixes for v5.3 1. Correction to ARM document ID referred in SCMI protocol binding 2. Fix to correct bitfield definitions for SENSOR_DESC attributes which otherwise will calculate sensor values on wrong scale 3. Adds the missing rate_discrete flag setting so that discrete clocks are handled correctly. Without this fix it assumes continuous range which is incorrect 4. Adds support to read and scale the sensor values based on the factor read from the firmware * tag 'scmi-updates-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux: hwmon: scmi: Scale values to target desired HWMON units firmware: arm_scmi: fetch and store sensor scale firmware: arm_scmi: update rate_discrete in clock_describe_rates_get firmware: arm_scmi: fix bitfield definitions for SENSOR_DESC attributes dt-bindings: arm: fix the document ID for SCMI protocol documentation Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/scmi_protocol.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/scmi_protocol.h b/include/linux/scmi_protocol.h
index 3105055c00a7..9ff2e9357e9a 100644
--- a/include/linux/scmi_protocol.h
+++ b/include/linux/scmi_protocol.h
@@ -144,6 +144,7 @@ struct scmi_power_ops {
struct scmi_sensor_info {
u32 id;
u8 type;
+ s8 scale;
char name[SCMI_MAX_STR_SIZE];
};