mfd: qcom-spmi-pmic: read fab id on supported PMICs
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 29 Apr 2022 22:08:58 +0000 (23:08 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Jun 2022 13:01:16 +0000 (14:01 +0100)
commitd23c3c085a95fddae5143823b7d5a81419e6f497
tree7743b373de48199e74fdc0a73ea5f890db57fd7c
parente9c11c6e3a0e93903f5a13f8d2f97ae1bba512e1
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>
drivers/mfd/qcom-spmi-pmic.c
include/soc/qcom/qcom-spmi-pmic.h