- 29 4月, 2018 4 次提交
-
-
由 Peter Rosin 提交于
Similar to current sense shunts, but an amplifier enables the use of a smaller sense resistance. Signed-off-by: NPeter Rosin <peda@axentia.se> Reviewed-by: NRob Herring <robh@kernel.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Peter Rosin 提交于
An ADC is often used to measure other quantities indirectly. This binding describe one cases, a "big" voltage measured with the help of a voltage divider. Signed-off-by: NPeter Rosin <peda@axentia.se> Reviewed-by: NRob Herring <robh@kernel.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Peter Rosin 提交于
An ADC is often used to measure other quantities indirectly. This binding describe one cases, a current through a shunt resistor measured by the voltage over it. Signed-off-by: NPeter Rosin <peda@axentia.se> Reviewed-by: NRob Herring <robh@kernel.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Charles Keepax 提交于
The regmap core now handles splitting up transactions according to max_raw_read, so this code is no longer required in client drivers. Signed-off-by: NCharles Keepax <ckeepax@opensource.cirrus.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
- 28 4月, 2018 25 次提交
-
-
由 Jean-Baptiste Maneyrol 提交于
Delete the useless ored result and give a second chance to turn the chip back off at the end. Signed-off-by: NJean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Jean-Baptiste Maneyrol 提交于
Factorize reading channel data in its own function. Signed-off-by: NJean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Jean-Baptiste Maneyrol 提交于
Use devm_* for iio_triggered_buffer_setup, iio_device_register, iio_trigger_register. Delete unneeded inv_mpu6050_remove_trigger, inv_mpu_core_remove, and inv_mpu_remove for spi driver. Signed-off-by: NJean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Jean-Baptiste Maneyrol 提交于
Some functions are turning the chip on and not back off in error path. With set_power function using a reference counter that would keep the chip on forever. Signed-off-by: NJean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Fabrice Gasnier 提交于
spi-max-frequency is requested for SPI master mode (only), to tune output clock. It may happen requested frequency isn't reachable. Add explicit check, so probe fails with error in this case. Otherwise, output clock may simply be silently turned off (conversions fail). Signed-off-by: NFabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Fabrice Gasnier 提交于
reg property should be checked against number of available filters. BTW, dfsdm->num_fls wasn't used. But it can be used for this purpose. This prevents using data out of allocated dfsdm->fl_list array. Signed-off-by: NFabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Fabrice Gasnier 提交于
Misc fixes & style improvements: - checkpatch warns about line over 80 characters. - remove extra spaces and a blank line (e.g. checkpatch --strict) - remove bad error message always printed in probe routine. Signed-off-by: NFabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 David Veenstra 提交于
Add blank lines to improve readability. Signed-off-by: NDavid Veenstra <davidjulianveenstra@gmail.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 David Veenstra 提交于
Reorders the variable declarations to prefer a reverse Christmas tree order to improve readability. Signed-off-by: NDavid Veenstra <davidjulianveenstra@gmail.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 David Veenstra 提交于
This patches sorts all the includes in alphabetic order. Signed-off-by: NDavid Veenstra <davidjulianveenstra@gmail.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 David Veenstra 提交于
This patches removes unneeded slab.h header. Signed-off-by: NDavid Veenstra <davidjulianveenstra@gmail.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
The configuration register on the device is represented with the prox_config member on the tsl2x7x_settings structure. According to the TSL2772 data sheet, this register can hold: 1) the proximity drive level, 2) ALS/Proximity long wait, and 3) the ALS gain level. This patch renames prox_config to als_prox_config since ALS settings can be stored here as well. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
This patch removes several unnecessary comments, changes some comments so that the use as much of the allowable 80 characters as possible, adds the proper whitespace, removes some structure members from the kernel docs that are no longer present, and improves the existing kernel doc information for some existing structure members. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
This patch changes the defaults of the als_time, prox_time and wait_time to match the defaults according to the TSL2772 datasheet. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
The driver mostly uses the 'prox' naming convention for most of the proximity settings, however prx_time and tsl2x7x_prx_gain was present. This patch renames these to prox_time and tsl2x7x_prox_gain for consistency with everything else in the driver. The kernel documentation for prx_gain is corrected to prox_gain so that it matches what is actually in the structure. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
The power and diode defines are needed for the platform data so this patch moves the defines out of the .c file and into the header file. A comment for the diode is also cleaned up while this code is touched. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
This patch renames tsl2x7x_device_id() to tsl2x7x_device_id_verif(), removes the unnecessary pointer on the id parameter, and only calls the verification function once. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
tsl2x7x_write_interrupt_config() has an unnecessary return value check at the end of the function. This patch changes the function to just return the value from the call to tsl2x7x_invoke_change(). Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
tsl2x7x_suspend() and tsl2x7x_resume() both check to see what the current chip status is. These checks are not necessary so this patch removes those checks. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
tsl2x7x_clear_interrupts() takes a reg argument but there are only two callers to this function and both callers pass the same value. Since this function was introduced, interrupts are now working properly for this driver, and several unnecessary calls to tsl2x7x_clear_interrupts() were removed. This patch removes the tsl2x7x_clear_interrupts() function and replaces the two callers with the i2c_smbus_write_byte() call instead. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
tsl2x7x_event_handler() could return an error and this could cause the interrupt to remain masked. We shouldn't return an error in the interrupt handler so this patch always returns IRQ_HANDLED. An error will be logged if one occurs. Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Brian Masney 提交于
The integration_time* attributes are currently associated with the IIO_LIGHT channel but should be associated with the IIO_INTENSITY channel. Directory listing of the sysfs attributes for a TSL2772 with this patch applied: dev events in_illuminance0_calibrate in_illuminance0_calibscale_available in_illuminance0_input in_illuminance0_lux_table in_illuminance0_target_input in_intensity0_calibbias in_intensity0_calibscale in_intensity0_integration_time in_intensity0_integration_time_available in_intensity0_raw in_intensity1_raw in_proximity0_calibrate in_proximity0_calibscale in_proximity0_calibscale_available in_proximity0_raw name of_node power subsystem uevent Signed-off-by: NBrian Masney <masneyb@onstation.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Wolfram Sang 提交于
We should get drvdata from struct device directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Wolfram Sang 提交于
We should get drvdata from struct device directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Wolfram Sang 提交于
We should get drvdata from struct device directly. Going via platform_device is an unneeded step back and forth. Signed-off-by: NWolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
- 21 4月, 2018 7 次提交
-
-
由 Hans de Goede 提交于
The Lenovo Ideapad Miix 320 uses an st accelerometer with an ACPI id of SMO8840, add support for this. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Martin Kelly 提交于
Document that the hardware supports falling edge, rising edge, level low, and level high interrupt types, rather than just rising edge. The language used is the same as that in st_lsm6dsx.txt. Signed-off-by: NMartin Kelly <mkelly@xevo.com> Reviewed-by: NRob Herring <robh@kernel.org> Acked-by: NJean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Martin Kelly 提交于
Currently, we support only rising edge interrupts, and in fact we assume that the interrupt we're given is rising edge (and things won't work if it's not). However, the device supports rising edge, falling edge, level low, and level high interrupts. Empirically, on my system, switching to level interrupts has fixed a problem I had with significant (~40%) interrupt loss with edge interrupts. This issue is likely related to the SoC I'm using (Allwinner H3), but being able to switch the interrupt type is still a very useful workaround. I tested this with each interrupt type and verified correct behavior in a logic analyzer. Add support for these interrupt types while also eliminating the error case of the device tree and driver using different interrupt types. Signed-off-by: NMartin Kelly <mkelly@xevo.com> Acked-by: NJean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Jean-Baptiste Maneyrol 提交于
Set power function is rewritten manually inside i2c mux select. Better use the already identical existing function. Signed-off-by: NJean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Jean-Baptiste Maneyrol 提交于
Rewrite set_power_itg. Failing when turning power off is no more decreasing the counter now and sleeping only happens when effectively turning the chip on. Fix also usage in init function (setting power on one time is sufficient to ensure chip is effectively on). Signed-off-by: NJean-Baptiste Maneyrol <jmaneyrol@invensense.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Fabian Mewes 提交于
Update the example to use the compatible string including the vendor prefix instead of the ones deprecated in 3a872138. Signed-off-by: NFabian Mewes <architekt@coding4coffee.org> Reviewed-by: NRob Herring <robh@kernel.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Hernán Gonzalez 提交于
Also remove unnecessary parenthesis Signed-off-by: NHernán Gonzalez <hernan@vanguardiasur.com.ar> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
- 16 4月, 2018 4 次提交
-
-
由 Christophe JAILLET 提交于
'sca3000_configure_ring()' can fail, so test its return value and propagate it if needed. Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Christophe JAILLET 提交于
Use 'devm_iio_kfifo_allocate()' instead of 'iio_kfifo_allocate()' in order to simplify code and avoid a memory leak in an error path in 'sca3000_probe()'. A call to 'sca3000_unconfigure_ring()' was missing. Sent via the next merge window as unimportant bug and there are other patches dependent on it. Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr> Cc: <Stable@vger.kernel.org> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Stefan Popa 提交于
The AD5694/AD5694R/AD5695R/AD5696/AD5696R are a family of 4 channel DACs with 12-bit, 14-bit and 16-bit precision respectively. The devices have either no built-in reference, or built-in 2.5V reference. The AD5671R/AD5675R are similar, except that they have 8 instead of 4 channels. These devices are similar to AD5672R/AD5676/AD5676R and AD5684/AD5684R/AD5684/AD5685R/AD5686/AD5686R, except that they use i2c instead of spi. Datasheets: http://www.analog.com/media/en/technical-documentation/data-sheets/AD5671R_5675R.pdf http://www.analog.com/media/en/technical-documentation/data-sheets/AD5696R_5695R_5694R.pdfSigned-off-by: NStefan Popa <stefan.popa@analog.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-
由 Stefan Popa 提交于
In this patch restructures the existing ad5686 driver by adding a module for SPI and a header file, while the baseline module deals with the chip-logic. This is a necessary step, as this driver should support in the future similar devices which differ only in the type of interface used (I2C instead of SPI). Signed-off-by: NStefan Popa <stefan.popa@analog.com> Signed-off-by: NJonathan Cameron <Jonathan.Cameron@huawei.com>
-