On Sat, 8 Jul 2023 12:58:29 +0530 Jishnu Prakash <quic_jprakash@xxxxxxxxxxx> wrote: > Now that usage of "ADC7" name has been replaced with usage of "ADC5 > Gen2" name everywhere, remove the "qcom,spmi-adc7" compatible string. > > Signed-off-by: Jishnu Prakash <quic_jprakash@xxxxxxxxxxx> Nope. Unless all your dts files are distributed with the kernel, dropping this breaks anyone who upgrades the kernel against an older firmware... So even after the rename, you need to keep the deprecated naming around for the binding side of things. Jonathan > --- > drivers/iio/adc/qcom-spmi-adc5.c | 4 ---- > 1 file changed, 4 deletions(-) > > diff --git a/drivers/iio/adc/qcom-spmi-adc5.c b/drivers/iio/adc/qcom-spmi-adc5.c > index 3ac1ee500a67..6cebeaa69a75 100644 > --- a/drivers/iio/adc/qcom-spmi-adc5.c > +++ b/drivers/iio/adc/qcom-spmi-adc5.c > @@ -807,10 +807,6 @@ static const struct of_device_id adc5_match_table[] = { > .compatible = "qcom,spmi-adc5", > .data = &adc5_data_pmic, > }, > - { > - .compatible = "qcom,spmi-adc7", > - .data = &adc5_gen2_data_pmic, > - }, > { > .compatible = "qcom,spmi-adc5-gen2", > .data = &adc5_gen2_data_pmic,