linux_dsm_epyc7002/drivers/iio/adc
Stefan Popa 6bf229abce iio: adc: ad7606: Move oversampling options in chip info and rework *_avail attributes
Available oversampling ratios and scales can be shown by calling a
common ad7606_show_avail function which takes as parameters the array
which stores the values, together with the size of the array.

Oversampling options are now defined in chip info
structure and they are loaded at probe.

Has_Oversampling attribute was removed because oversampling_num was added
and it is not needed anymore.

The purpose of this patch is to deal with the scale_avail and
oversampling_avail arrays in a generic way. This makes it easier to add
support for new devices which will work with different scales and
oversampling ratios. It is also an intermediate step for adding support
for ad7616 which has different oversampling sampling ratios available.

Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Beniamin Bia <beniamin.bia@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2019-04-14 13:22:29 +01:00
..
ad799x.c drivers: iio: Update MODULE AUTHOR email address 2018-08-19 17:23:39 +01:00
ad7124.c iio: adc: ad7124 fix indentation issue, remove extra tab 2019-04-04 20:19:59 +01:00
ad7266.c
ad7291.c
ad7298.c drivers: iio: Update MODULE AUTHOR email address 2018-08-19 17:23:39 +01:00
ad7476.c iio: adc: ad7476: Add support for TI ADS786X ADCs 2019-02-09 18:46:02 +00:00
ad7606_par.c staging: iio: adc: ad7606: Move out of staging 2019-01-05 16:10:59 +00:00
ad7606_spi.c staging: iio: adc: ad7606: Move out of staging 2019-01-05 16:10:59 +00:00
ad7606.c iio: adc: ad7606: Move oversampling options in chip info and rework *_avail attributes 2019-04-14 13:22:29 +01:00
ad7606.h iio: adc: ad7606: Move oversampling options in chip info and rework *_avail attributes 2019-04-14 13:22:29 +01:00
ad7766.c
ad7768-1.c iio: adc: ad7768-1: Add support for setting the sampling frequency 2019-02-09 18:46:01 +00:00
ad7780.c iio: adc: ad7780: Add parentheses to macros 2019-04-04 20:20:30 +01:00
ad7791.c iio: adc: ad7791: implement IIO_CHAN_INFO_SAMP_FREQ 2018-03-17 20:47:21 +00:00
ad7793.c drivers: iio: Update MODULE AUTHOR email address 2018-08-19 17:23:39 +01:00
ad7887.c drivers: iio: Update MODULE AUTHOR email address 2018-08-19 17:23:39 +01:00
ad7923.c iio:adc:ad7923: Rewrite comparison to NULL 2019-04-04 20:19:46 +01:00
ad7949.c iio:adc:ad7949: Add AD7949 ADC driver family 2018-11-03 09:44:34 +00:00
ad_sigma_delta.c iio: ad_sigma_delta: Properly handle SPI bus locking vs CS assertion 2019-04-04 20:21:15 +01:00
aspeed_adc.c
at91_adc.c iio: adc: at91: fix wrong channel number in triggered buffer mode 2018-09-29 12:30:24 +01:00
at91-sama5d2_adc.c iio: adc: at91-sama5d2_adc: fix up casting in at91_adc_read_info_raw() 2018-07-23 19:18:12 +01:00
axp20x_adc.c iio: adc: axp20x_adc: remove !! in favor of ternary condition 2018-02-24 12:19:45 +00:00
axp288_adc.c iio: adc: axp288: Fix TS-pin handling 2019-01-12 17:09:55 +00:00
bcm_iproc_adc.c
berlin2-adc.c
cc10001_adc.c
cpcap-adc.c
da9150-gpadc.c
dln2-adc.c
envelope-detector.c iio: envelope-detector: switch to SPDX license identifier 2018-08-20 19:27:05 +01:00
ep93xx_adc.c iio: ep93xx: remove redundant return value check of platform_get_resource() 2018-01-30 18:33:20 +00:00
exynos_adc.c iio: adc: exynos-adc: Use proper number of channels for Exynos4x12 2019-02-12 20:56:00 +00:00
fsl-imx25-gcq.c iio: adc: imx25-gcq: Fix leak of device_node in mx25_gcq_setup_cfgs() 2018-09-22 10:19:51 +01:00
hi8435.c
hx711.c iio: hx711: add delay until DOUT is ready 2018-07-15 09:36:38 +01:00
imx7d_adc.c iio: adc: fix spelling mistake: "Freeacale" -> "Freescale" 2018-05-22 18:17:57 +01:00
ina2xx-adc.c iio: adc: ina2xx: add in early -EINVAL returns in case statements 2018-10-21 15:43:11 +01:00
ingenic-adc.c iio: adc: ingenic: remove redundant dev_err call in ingenic_adc_probe() 2019-04-04 20:19:40 +01:00
Kconfig iio: adc: Fix MAX9611 spacing 2019-04-14 13:22:29 +01:00
lp8788_adc.c
lpc18xx_adc.c
lpc32xx_adc.c iio: adc: lpc32xx: Add scale feature 2019-04-04 20:20:02 +01:00
ltc2471.c
ltc2485.c
ltc2497.c
Makefile staging: iio: ad7780: moving ad7780 out of staging 2019-04-04 20:20:06 +01:00
max1027.c treewide: devm_kmalloc() -> devm_kmalloc_array() 2018-06-12 16:19:22 -07:00
max1118.c
max1363.c iio: adc: max1363: merge calls to of_match_device and of_device_get_match_data 2018-07-08 10:35:17 +01:00
max9611.c iio: adc: max9611: convert to SPDX identifiers 2018-11-16 18:32:27 +00:00
max11100.c iio: adc: max11100: convert to SPDX identifiers 2018-11-16 18:32:27 +00:00
mcp320x.c
mcp3422.c
mcp3911.c iio: adc: add support for mcp3911 2018-08-19 20:02:48 +01:00
men_z188_adc.c
meson_saradc.c iio: adc: meson-saradc: add support for Meson G12A 2019-04-04 20:19:51 +01:00
mt6577_auxadc.c
mxs-lradc-adc.c iio: adc: fix a potential NULL pointer dereference 2019-04-04 20:19:53 +01:00
nau7802.c
npcm_adc.c iio: adc: add NPCM ADC driver 2019-01-19 18:58:54 +00:00
palmas_gpadc.c
qcom-pm8xxx-xoadc.c iio: adc: fix warning in Qualcomm PM8xxx HK/XOADC driver 2019-03-06 15:41:29 -08:00
qcom-spmi-adc5.c iio: adc: qcom-spmi-adc5: Initialize prescale properly 2018-12-12 17:45:30 +00:00
qcom-spmi-iadc.c
qcom-spmi-vadc.c
qcom-vadc-common.c iio: adc: Add QCOM SPMI PMIC5 ADC driver 2018-08-18 18:11:43 +01:00
qcom-vadc-common.h iio: adc: Add QCOM SPMI PMIC5 ADC driver 2018-08-18 18:11:43 +01:00
rcar-gyroadc.c iio: adc: rcar-gyroadc: convert to SPDX identifiers 2018-11-16 18:32:28 +00:00
rockchip_saradc.c
sc27xx_adc.c iio: adc: sc27xx: Add ADC data conversion timeout 2018-11-16 18:32:32 +00:00
sd_adc_modulator.c
spear_adc.c
stm32-adc-core.c iio: adc: stm32-adc: add power management support 2018-11-25 13:15:24 +00:00
stm32-adc-core.h
stm32-adc.c iio: adc: stm32-adc: switch off running adc when going to low power 2018-11-25 13:16:38 +00:00
stm32-dfsdm-adc.c iio: adc: stm32-dfsdm: add PM support 2019-04-04 20:21:12 +01:00
stm32-dfsdm-core.c iio: adc: stm32-dfsdm: add PM support 2019-04-04 20:21:12 +01:00
stm32-dfsdm.h
stmpe-adc.c iio: adc: stmpe-adc: Shuffle an if statement around in stmpe_adc_isr 2019-04-04 20:19:56 +01:00
stx104.c iio: stx104: Implement get_multiple callback 2018-03-17 16:21:27 +00:00
sun4i-gpadc-iio.c
ti_am335x_adc.c iio: adc: ti_am335x_tscadc: Improve accuracy of measurement 2018-12-03 11:33:20 +00:00
ti-adc081c.c
ti-adc084s021.c
ti-adc108s102.c
ti-adc128s052.c iio: adc128s052: use SPDX-License-Identifier 2018-11-03 09:44:33 +00:00
ti-adc161s626.c iio: add SPDX identifier for various drivers 2018-02-18 11:55:19 +00:00
ti-adc0832.c
ti-adc12138.c
ti-ads124s08.c iio: adc: ads124s08: fix spelling mistake "converions" -> "conversions" 2019-02-09 18:46:03 +00:00
ti-ads1015.c
ti-ads7950.c iio: adc: ti-ads7950: add GPIO support 2019-04-04 20:19:53 +01:00
ti-ads8688.c iio: adc: ti-ads8688: Update the module author email address 2019-04-04 20:19:53 +01:00
ti-tlc4541.c
twl4030-madc.c
twl6030-gpadc.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
vf610_adc.c
viperboard_adc.c
xilinx-xadc-core.c iio: adc: xilinx: check return value of xadc_write_adc_reg 2019-01-05 16:44:02 +00:00
xilinx-xadc-events.c
xilinx-xadc.h iio: adc: xilinx: Remove platform_get_irq from xadc_remove function 2018-07-29 12:52:21 +01:00