- 26 2月, 2015 1 次提交
-
-
由 Adam Thomson 提交于
This patch adds support for DA9150 Charger & Fuel-Gauge IC GPADC. Signed-off-by: NAdam Thomson <Adam.Thomson.Opensource@diasemi.com> Reviewed-by: NHartmut Knaack <knaack.h@gmx.de> Acked-by: NJonathan Cameron <jic23@kernel.org> Signed-off-by: NSebastian Reichel <sre@kernel.org>
-
- 04 2月, 2015 1 次提交
-
-
由 Brad Griffis 提交于
This patch makes the initial changes required to workaround TSC-false pen-up interrupts. It is required to implement these changes in order to remove udelay in the TSC interrupt handler and false pen-up events. The charge step is to be executed immediately after sampling X+. Hence TSC is made to use higher numbered steps (steps 5 to 16 for 5 co-ordinate readouts, 4 wire TSC configuration) and ADC to use lower ones. Further X co-ordinate readouts must be the last to be sampled, thus co-ordinates are sampled in the order Y-Z-X. Signed-off-by: NBrad Griffis <bgriffis@ti.com> [vigneshr@ti.com: Ported the patch from v3.12 to v3.19rc1] Signed-off-by: NVignesh R <vigneshr@ti.com> Acked-by: NJonathan Cameron <jic23@kernel.org> Signed-off-by: NDmitry Torokhov <dmitry.torokhov@gmail.com>
-
- 30 1月, 2015 1 次提交
-
-
由 Phani Movva 提交于
This commit adds support for Cosmic Circuits 10001 10-bit ADC device. Reviewed-by: NAndrew Bresticker <abrestic@chromium.org> Signed-off-by: NPhani Movva <Phani.Movva@imgtec.com> Signed-off-by: NNaidu Tellapati <Naidu.Tellapati@imgtec.com> [ezequiel: code style cleaning] Signed-off-by: NEzequiel Garcia <ezequiel.garcia@imgtec.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 29 1月, 2015 1 次提交
-
-
由 Stanimir Varbanov 提交于
The voltage ADC is peripheral of Qualcomm SPMI PMIC chips. It has 15bits resolution and register space inside PMIC accessible across SPMI bus. The vadc driver registers itself through IIO interface. Signed-off-by: NStanimir Varbanov <svarbanov@mm-sol.com> Signed-off-by: NIvan T. Ivanov <iivanov@mm-sol.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 26 12月, 2014 1 次提交
-
-
由 Karol Wrona 提交于
indio_dev was unused in function body plus some small style fix - add new lines after "if(sth) return sth" and before the last return statement. The argument was removed also in its client. Signed-off-by: NKarol Wrona <k.wrona@samsung.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 12 12月, 2014 2 次提交
-
-
由 Lars-Peter Clausen 提交于
The ad7991/ad7995/ad7999 does not have a configuration register like the other devices that can be written and read. The configuration is written as part of the conversion sequence. Fixes: 0f7ddcc1 ("iio:adc:ad799x: Write default config on probe and reset alert status on probe") Signed-off-by: NLars-Peter Clausen <lars@metafoo.de> Tested-by: NMike Looijmans <mike.looijmans@topic.nl> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Lars-Peter Clausen 提交于
Originally device and buffer registration were kept as separate operations in IIO to allow to register two distinct sets of channels for buffered and non-buffered operations. This has since already been further restricted and the channel set registered for the buffer needs to be a subset of the channel set registered for the device. Additionally the possibility to not have a raw (or processed) attribute for a channel which was registered for the device was added a while ago. This means it is possible to not register any device level attributes for a channel even if it is registered for the device. Also if a channel's scan_index is set to -1 and the channel is registered for the buffer it is ignored. So in summary it means it is possible to register the same channel array for both the device and the buffer yet still end up with distinctive sets of channels for both of them. This makes the argument for having to have to manually register the channels for both the device and the buffer invalid. Considering that the vast majority of all drivers want to register the same set of channels for both the buffer and the device it makes sense to move the buffer registration into the core to avoid some boiler-plate code in the device driver setup path. Signed-off-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 18 11月, 2014 2 次提交
-
-
由 Jacob Pan 提交于
This is no longer needed in that platform driver_register will do it. Signed-off-by: NJacob Pan <jacob.jun.pan@linux.intel.com> Acked-by: NJonathan Cameron <jic23@kernel.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
由 Aaron Lu 提交于
Add the module device id table so that the driver can be automatically loaded once the platform device is created. Signed-off-by: NAaron Lu <aaron.lu@intel.com> Signed-off-by: NJacob Pan <jacob.jun.pan@linux.intel.com> Acked-by: NJonathan Cameron <jic23@kernel.org> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 16 11月, 2014 1 次提交
-
-
由 Axel Lin 提交于
The mcb_device_id table is supposed to be zero-terminated. Signed-off-by: NAxel Lin <axel.lin@ingics.com> Cc: <Stable@vger.kernel.org> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 05 11月, 2014 2 次提交
-
-
由 Abhilash Kesavan 提交于
The ADC on exynos7 is quite similar to ADCv2. The differences are as follows: - exynos7-adc has 8 input channels (as against 10 in ADCv2). - exynos7 does not include an ADC PHY control register. - Some ADC_CON2 register bits being used in ADCv2 are listed as reserved in exynos7-adc. This results in a different init_hw function for exynos7. Signed-off-by: NAbhilash Kesavan <a.kesavan@samsung.com> Reviewed-by: NChanwoo Choi <cw00.choi@samsung.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Naveen Krishna Chatradhi 提交于
This patch updates the IIO based ADC driver to use syscon and regmap APIs to access and use PMU registers instead of remapping the PMU registers in the driver. Signed-off-by: NNaveen Krishna Chatradhi <ch.naveen@samsung.com> To: linux-iio@vger.kernel.org Acked-by: NKukjin Kim <kgene.kim@samsung.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 26 10月, 2014 1 次提交
-
-
由 Ivan T. Ivanov 提交于
The current ADC is peripheral of Qualcomm SPMI PMIC chips. It has 16 bits resolution and register space inside PMIC accessible across SPMI bus. The driver registers itself through IIO interface. Signed-off-by: NIvan T. Ivanov <iivanov@mm-sol.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 23 10月, 2014 1 次提交
-
-
由 Fabio Estevam 提交于
There is no need to pass a 'fake' return value when platform_get_irq() fails. Propagate the real error instead. While at it, only consider negative numbers returned by platform_get_irq() as error. Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 20 10月, 2014 1 次提交
-
-
由 Wolfram Sang 提交于
A platform_driver does not need to set an owner, it will be populated by the driver core. Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
-
- 10 10月, 2014 1 次提交
-
-
由 Søren Andersen 提交于
Signed-off-by: Soeren Andersen <san at rosetechnology.dk> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 07 10月, 2014 1 次提交
-
-
由 Jacob Pan 提交于
Platform driver for X-Powers AXP288 ADC, which is a sub-device of the customized AXP288 PMIC for Intel Baytrail-CR platforms. GPADC device enumerates as one of the MFD cell devices. It uses IIO infrastructure to communicate with userspace and consumer drivers. Usages of ADC channels include battery charging and thermal sensors. Based on initial work by: Ramakrishna Pallala <ramakrishna.pallala@intel.com> Acked-by: NJonathan Cameron <jic23@kernel.org> Signed-off-by: NJacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: NLee Jones <lee.jones@linaro.org>
-
- 04 10月, 2014 3 次提交
-
-
由 Fabio Estevam 提交于
No need to call the SIMPLE_DEV_PM_OPS() macro in several lines. It can fit into the 80-column range. Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Fabio Estevam 提交于
If clk_prepare_enable() fails we should disable the regulator that was previously enabled. Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Fabio Estevam 提交于
There is no need to pass the error clock code to the variable 'ret'. Just return the error directly. Signed-off-by: NFabio Estevam <fabio.estevam@freescale.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 21 9月, 2014 2 次提交
-
-
由 Heiko Stübner 提交于
Older Rockchip SoCs, at least the rk3066, used a slightly modified saradc for temperature measurements. This so called tsadc does not contain any active parts like temperature interrupts and only supports polling the current temperature. The returned voltage can then be converted by a suitable thermal driver to and actual temperature and used for thermal handling. Signed-off-by: NHeiko Stuebner <heiko@sntech.de> Acked-by: NHartmut Knaack <knaack.h@gmx.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Sanchayan Maity 提交于
Vybrid ADC peripheral includes a temperature sensor which is connected to channel number 26. This patch adds support for the sensor. The raw value is read and the temperature calculated in milli degree Celsius, which is returned using IIO_CHAN_INFO_PROCESSED option. Signed-off-by: NSanchayan Maity <maitysanchayan@gmail.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 15 9月, 2014 2 次提交
-
-
由 Ludovic Desroches 提交于
If touchscreen mode is enabled and a conversion is requested on another channel, the result in the last converted data register can be a touchscreen relative value. Starting a conversion involves to do a conversion for all active channel. It starts with ADC channels and ends with touchscreen channels. Then if ADC_LCD register is not read quickly, its content may be a touchscreen conversion. To remove this temporal constraint, the conversion value is taken from the channel data register. Signed-off-by: NLudovic Desroches <ludovic.desroches@atmel.com> Acked-by: NAlexandre Belloni <alexandre.belloni@free-electrons.com> Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com> Cc: Stable@vger.kernel.org Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Subbaraya Sundeep Bhatta 提交于
This patch fixes incorrect logic for assigning address to auxiliary channels of xilinx xadc. Signed-off-by: NSubbaraya Sundeep Bhatta <sbhatta@xilinx.com> Acked-by: NLars-Peter Clausen <lars@metafoo.de> Cc: Stable@vger.kernel.org Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 30 8月, 2014 2 次提交
-
-
由 Josh Wu 提交于
The handle_adc_eoc_trigger() in only used in at91_adc.c. So make it static. Signed-off-by: NJosh Wu <josh.wu@atmel.com> Acked-by: NNicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Heiko Stübner 提交于
The rate variable in the probe function of the saradc is a remnant of a previous patch iteration. It is unused and thus produces a compile time warning. Therefore remove it. Signed-off-by: NHeiko Stuebner <heiko@sntech.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 27 8月, 2014 1 次提交
-
-
由 Sanjeev Sharma 提交于
This patch removes the .owner field for drivers which use the platform_driver_register api because this is overriden in _platform_driver_register. Signed-off-by: NSanjeev Sharma <Sanjeev_Sharma@mentor.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 26 8月, 2014 1 次提交
-
-
由 Srinivas Pandruvada 提交于
This can result in wrong reference count for trigger device, call iio_trigger_get to increment reference. Refer to http://www.spinics.net/lists/linux-iio/msg13669.html for discussion with Jonathan. Signed-off-by: NSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Acked-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org> Cc: Stable@vger.kernel.org
-
- 20 8月, 2014 1 次提交
-
-
由 Michal Simek 提交于
There is no need to init .owner field. Based on the patch from Peter Griffin <peter.griffin@linaro.org> "mmc: remove .owner field for drivers using module_platform_driver" This patch removes the superflous .owner field for drivers which use the module_platform_driver API, as this is overriden in platform_driver_register anyway." Signed-off-by: NMichal Simek <michal.simek@xilinx.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 08 8月, 2014 2 次提交
-
-
由 Chanwoo Choi 提交于
This patch add support for s3c2410/s3c2416/s3c2440/s3c2443 ADC. The s3c24xx is alomost same as ADCv1. But, There are a little difference as following: - ADCMUX register address - ADCDAT mask (10 bit or 12 bit ADC resolution according to SoC version) - s3c24xx/s3c64xx has not included ADC_PHY enable register Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Acked-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Arnd Bergmann 提交于
The ADC in s3c64xx is almost the same as exynosv1, but has a different 'select' method. Adding this here will be helpful to move over the existing s3c64xx platform from the legacy plat-samsung/adc driver to the new exynos-adc. Signed-off-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 07 8月, 2014 3 次提交
-
-
由 Heiko Stübner 提交于
The ADC is a 3-channel signal-ended 10-bit Successive Approximation Register (SAR) A/D Converter. It uses the supply and ground as its reference and converts the analog input signal into 10-bit binary digital codes. Signed-off-by: NHeiko Stuebner <heiko@sntech.de> Reviewed-by: NHartmut Knaack <knaack.h@gmx.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Angelo Compagnucci 提交于
This patch adds support for ADC128S052 from TI. Signed-off-by: NAngelo Compagnucci <angelo.compagnucci@gmail.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Julia Lawall 提交于
Convert a zero return value on error to a negative one, as returned elsewhere in the function. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // <smpl> ( if@p1 (\(ret < 0\|ret != 0\)) { ... return ret; } | ret@p1 = 0 ) ... when != ret = e1 when != &ret *if(...) { ... when != ret = e2 when forall return ret; } // </smpl> Signed-off-by: NJulia Lawall <Julia.Lawall@lip6.fr> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 24 7月, 2014 2 次提交
-
-
由 Chanwoo Choi 提交于
This patch control special clock for ADC in Exynos series's FSYS block. If special clock of ADC is registerd on clock list of common clk framework, Exynos ADC drvier have to control this clock. Exynos3250/Exynos4/Exynos5 has 'adc' clock as following: - 'adc' clock: bus clock for ADC Exynos3250 has additional 'sclk_adc' clock as following: - 'sclk_adc' clock: special clock for ADC which provide clock to internal ADC Exynos 4210/4212/4412 and Exynos5250/5420 has not included 'sclk_adc' clock in FSYS_BLK. But, Exynos3250 based on Cortex-A7 has only included 'sclk_adc' clock in FSYS_BLK. Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Reviewed-by: NTomasz Figa <t.figa@samsung.com> Acked-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Chanwoo Choi 提交于
This patchset add 'exynos_adc_data' structure which includes some functions to control ADC operation and specific data according to ADC version (v1 or v2). Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com> Acked-by: NKyungmin Park <kyungmin.park@samsung.com> Reviewed-by: NNaveen Krishna Chatradhi <ch.naveen@samsung.com> Reviewed-by: NTomasz Figa <t.figa@samsung.com> Acked-by: NArnd Bergmann <arnd@arndb.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 14 7月, 2014 4 次提交
-
-
由 Peter Meerwald 提交于
Allows explicity enabling of events Previously, events were always reported as enabled, but actually only implicitly enabled when updating the buffer scan mode Signed-off-by: NPeter Meerwald <pmeerw@pmeerw.net> Acked-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Peter Meerwald 提交于
only report an event as enabled if it actually is enabled Signed-off-by: NPeter Meerwald <pmeerw@pmeerw.net> Acked-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Peter Meerwald 提交于
rename since function is used by all chips with ALERT pin, not just ad7997/8 Signed-off-by: NPeter Meerwald <pmeerw@pmeerw.net> Acked-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Peter Meerwald 提交于
writing ALERT_EN and BUSY_ALERT to the chip config register clears pending alerts, BUSY_ALERT is cleared when reading back the register Signed-off-by: NPeter Meerwald <pmeerw@pmeerw.net> Acked-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-