Message ID | 20220311164628.378849-1-gengcixi@gmail.com |
---|---|
Headers | show |
Series | iio: adc: sc27xx: adjust structure and add PMIC's support | expand |
On Sat, 12 Mar 2022 00:46:23 +0800 Cixi Geng <gengcixi@gmail.com> wrote: > From: Cixi Geng <cixi.geng1@unisoc.com> > > Fix wrong configuration value of SC27XX_ADC_SCALE_MASK and > SC27XX_ADC_SCALE_SHIFT by spec documetation. > > Signed-off-by: Yuming Zhu <yuming.zhu1@unisoc.com> > Signed-off-by: Cixi Geng <cixi.geng1@unisoc.com> > No blank lines in a tag block (they break people's scripts) Also, if this is a fix, I'd expect a fixes tag. > Reviewed-by: Baolin Wang <baolin.wang7@gmail.com> > --- > drivers/iio/adc/sc27xx_adc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/iio/adc/sc27xx_adc.c b/drivers/iio/adc/sc27xx_adc.c > index 00098caf6d9e..aee076c8e2b1 100644 > --- a/drivers/iio/adc/sc27xx_adc.c > +++ b/drivers/iio/adc/sc27xx_adc.c > @@ -36,8 +36,8 @@ > > /* Bits and mask definition for SC27XX_ADC_CH_CFG register */ > #define SC27XX_ADC_CHN_ID_MASK GENMASK(4, 0) > -#define SC27XX_ADC_SCALE_MASK GENMASK(10, 8) > -#define SC27XX_ADC_SCALE_SHIFT 8 > +#define SC27XX_ADC_SCALE_MASK GENMASK(10, 9) > +#define SC27XX_ADC_SCALE_SHIFT 9 This driver would benefit from use of FIELD_GET() / FIELD_PREP() but that is obviously unrelated to this particular series. Jonathan > > /* Bits definitions for SC27XX_ADC_INT_EN registers */ > #define SC27XX_ADC_IRQ_EN BIT(0)
From: Cixi Geng <cixi.geng1@unisoc.com> this patchset add a sc27xx_adc_variant_data structure and add sc272*,sc273* and ump9620 PMIC support. also add ump9620 PMIC suspend and resume pm implement. Cixi Geng (7): dt-bindings:iio:adc: add sprd,ump9620-adc dtbindings iio: adc: sc27xx: fix read big scale voltage not right iio: adc: sc27xx: structure adjuststment and optimization iio: adc: sc27xx: add support for PMIC sc2720 and sc2721 iio: adc: sc27xx: add support for PMIC sc2730 iio: adc: sc27xx: add support for PMIC ump9620 iio: adc: sc27xx: add Ump9620 ADC suspend and resume pm support v2 changes: fix dt_binding_check error adjust some code-style issue optimize the copy-paste functions the smatch warnings found by lkp and ohter comments by v1 patches. .../bindings/iio/adc/sprd,sc2720-adc.yaml | 30 +- drivers/iio/adc/sc27xx_adc.c | 797 ++++++++++++++++-- 2 files changed, 764 insertions(+), 63 deletions(-)