summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorCaleb Connolly <caleb.connolly@linaro.org>2022-04-29 23:08:58 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-06-18 14:01:16 +0100
commitd23c3c085a95fddae5143823b7d5a81419e6f497 (patch)
tree7743b373de48199e74fdc0a73ea5f890db57fd7c /include/soc
parente9c11c6e3a0e93903f5a13f8d2f97ae1bba512e1 (diff)
mfd: qcom-spmi-pmic: read fab id on supported PMICs
The PMI8998 and PM660 expose the fab_id, this is needed by drivers like the RRADC to calibrate ADC values. Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Tested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Acked-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20220429220904.137297-4-caleb.connolly@linaro.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/soc')
-rw-r--r--include/soc/qcom/qcom-spmi-pmic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/soc/qcom/qcom-spmi-pmic.h b/include/soc/qcom/qcom-spmi-pmic.h
index 5894da3c7f6a..72398ff44719 100644
--- a/include/soc/qcom/qcom-spmi-pmic.h
+++ b/include/soc/qcom/qcom-spmi-pmic.h
@@ -52,6 +52,7 @@ struct qcom_spmi_pmic {
unsigned int major;
unsigned int minor;
unsigned int rev2;
+ unsigned int fab_id;
const char *name;
};