- 26 10月, 2014 2 次提交
-
-
由 Hartmut Knaack 提交于
In si7020_read_raw() the pointer to the i2c client was obtained as second level pointer, although a simple pointer is appropriate. Signed-off-by: NHartmut Knaack <knaack.h@gmx.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Hartmut Knaack 提交于
When reading temperature or humidity values, a shift of two bits to the right needs to be applied, and only for the humidity channel a mask of the lower 12 bits needs to be applied. This reduces code repetition. During probe, i2c_set_clientdata() was used, although its counterpart was not, so drop it. Signed-off-by: NHartmut Knaack <knaack.h@gmx.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 25 10月, 2014 5 次提交
-
-
由 Ivan T. Ivanov 提交于
When #iio-cells is greater than '0', the driver could provide a custom of_xlate function that reads the *args* and returns the appropriate index in registered IIO channels array. Add simple translation function, suitable for the most 1:1 mapped channels in IIO chips, and use it when driver did not provide custom implementation. Signed-off-by: NIvan T. Ivanov <iivanov@mm-sol.com> Reviewed-by: NLars-Peter Clausen <lars@metafoo.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Roberta Dobrescu 提交于
This patch adds the missing IIO modifiers in event_is_known function and iio_modifier_names vector. Additionally, it removes duplicate name entries of IIO_MOD_LIGHT_BOTH and IIO_MOD_LIGHT_IR in iio_modifier_names. Signed-off-by: NRoberta Dobrescu <roberta.dobrescu@gmail.com> Reviewed-by: NDaniel Baluta <daniel.baluta@intel.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Roberta Dobrescu 提交于
This patch adds documentation for RGBC in_intensity_*_hardwaregain. There is at least one user for these, ADJD-S311-CR999 digital color sensor driver. Signed-off-by: NRoberta Dobrescu <roberta.dobrescu@gmail.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Roberta Dobrescu 提交于
This patch adds ABI documentation entries for in_humidityrelative_offset and in_humidityrelative_scale, since there is at least one user for these, Si7005 humidity and temperature sensor driver. Signed-off-by: NRoberta Dobrescu <roberta.dobrescu@gmail.com> Reviewed-by: NDaniel Baluta <daniel.baluta@intel.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Vlad Dogaru 提交于
The proper way to divide two signed 64-bit values is to use div64_s64. Signed-off-by: NVlad Dogaru <vlad.dogaru@intel.com> Reported-by: Nkbuild test robot <fengguang.wu@intel.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 23 10月, 2014 3 次提交
-
-
由 Vlad Dogaru 提交于
Minimal implementation, can read temperature and data using direct mode. Datasheet available at <http://ae-bst.resource.bosch.com/media/products/dokumente/bmp280/BST-BMP280-DS001-09.pdf> Signed-off-by: NVlad Dogaru <vlad.dogaru@intel.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Vlad Dogaru 提交于
Signed-off-by: NVlad Dogaru <vlad.dogaru@intel.com> Reviewed-by: NDaniel Baluta <daniel.baluta@intel.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 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>
-
- 10 10月, 2014 1 次提交
-
-
由 Søren Andersen 提交于
Signed-off-by: Soeren Andersen <san at rosetechnology.dk> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 04 10月, 2014 11 次提交
-
-
由 David Barksdale 提交于
This patch adds support to the Industrial IO subsystem for the Silicon Labs Si7013/20/21 Relative Humidity and Temperature Sensors. Website: http://www.silabs.com/products/sensors/humidity-sensors/Pages/si7013-20-21.aspx These are i2c devices which measure relative humidity and temperature and all use the same protocol. The Si7013 has an additional input with programmable linearization which is not supported because that's complicated and I didn't need it. Signed-off-by: NDavid Barksdale <dbarksdale@uplogix.com> -- Changes since v1: * Renamed to si7020 and replaced Si701x/2x with Si7013/20/21. * Removed unneeded mutex. * Pre-computed floating-point constant expressions. * Removed address_list and I2C_CLASS_HWMON. Changes since v2: * Return correct raw sensor values. * Rename dev variable to indio_dev. * Issue a software reset command during probe. * Un-broke string literal. Changes since v3: * enum changed to #define Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 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>
-
由 Denis CIOCCA 提交于
Signed-off-by: NDenis Ciocca <denis.ciocca@st.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Denis CIOCCA 提交于
This patch fix pressure data variable name. Usually pdata name it is used for platform data. Signed-off-by: NDenis Ciocca <denis.ciocca@st.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Denis CIOCCA 提交于
Signed-off-by: NDenis Ciocca <denis.ciocca@st.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Denis CIOCCA 提交于
Signed-off-by: NDenis Ciocca <denis.ciocca@st.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Denis CIOCCA 提交于
Signed-off-by: NDenis Ciocca <denis.ciocca@st.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Denis CIOCCA 提交于
Signed-off-by: NDenis Ciocca <denis.ciocca@st.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 Denis CIOCCA 提交于
This patch change structure name and related variables names. Signed-off-by: NDenis Ciocca <denis.ciocca@st.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 21 9月, 2014 4 次提交
-
-
由 Jacob Pan 提交于
Add documentation for input current raw sysfs attribute. Signed-off-by: NJacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
由 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>
-
由 Chris Ruffin 提交于
The else clause in the conditional of lis3l02dq_data_rdy_trig_poll() does not make consistent use of braces with the rest of the conditional. Fix this coding style problem by removing the unnecessary conditional altogether. Signed-off-by: NChris Ruffin <cmruffin@gmail.com> Acked-by: NHartmut Knaack <knaack.h@gmx.de> Signed-off-by: NJonathan Cameron <jic23@kernel.org>
-
- 20 9月, 2014 14 次提交
-
-
由 Mahati Chamarthy 提交于
This fixes the following checkpatch.pl warning: WARNING: __constant_htons should be htons Signed-off-by: NMahati Chamarthy <mahati.chamarthy@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Catalina Mocanu 提交于
This fixes the following checkpatch.pl warning: WARNING: else is not generally useful after a break or return. While at it, remove new line for symmetry with the rest of the code. Signed-off-by: NCatalina Mocanu <catalina.mocanu@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Gulsah Kose 提交于
This patch fixes "quoted string split across lines" checkpatch.pl warning in ethernet.c Signed-off-by: NGulsah Kose <gulsah.1004@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Gulsah Kose 提交于
Fixes "Missing a blank line after declarations" checkpatch.pl warning in ethernet.c Signed-off-by: NGulsah Kose <gulsah.1004@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Roberta Dobrescu 提交于
This fixes the following checkpatch.pl warning: WARNING: __constant_cpu_to_le16 should be cpu_to_le16 Additionally, it removes the space between function name and (. Signed-off-by: NRoberta Dobrescu <roberta.dobrescu@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Aybuke Ozdemir 提交于
This patch fixes these warning messages found by checkpatch.pl: WARNING: please, no space before tabs. Signed-off-by: NAybuke Ozdemir <aybuke.147@gmail.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Aybuke Ozdemir 提交于
This patch fixes these error messages found by checkpatch.pl: ERROR: "foo* bar" should be "foo *bar" Signed-off-by: NAybuke Ozdemir <aybuke.147@gmail.com> Reviewed-by: NJosh Triplett <josh@joshtriplett.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Aybuke Ozdemir 提交于
This fixes checkpatch.pl warning: WARNING: void function return statements are not generally useful Signed-off-by: NAybuke Ozdemir <aybuke.147@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Aybuke Ozdemir 提交于
Fix checkpatch.pl issues with missing a blank line after declarations in cxd2099.c Signed-off-by: NAybuke Ozdemir <aybuke.147@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Aybuke Ozdemir 提交于
Fix checkpatch.pl issues with missing a blank line after declarations in ethernet-sgmii.c Signed-off-by: NAybuke Ozdemir <aybuke.147@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Aybuke Ozdemir 提交于
Fix checkpatch.pl issues with trailing whitespace in README. Signed-off-by: NAybuke Ozdemir <aybuke.147@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Aybuke Ozdemir 提交于
Fix checkpatch.pl issues with line over 80 characters in HandleControlPacket.c Signed-off-by: NAybuke Ozdemir <aybuke.147@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Gulsah Kose 提交于
Fixes "Missing a blank line after declarations" checkpatch.pl warning in lirc_serial.c Signed-off-by: NGulsah Kose <gulsah.1004@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>. Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-
由 Gulsah Kose 提交于
This patch fixes "void function return statements are not generally useful" checkpatch.pl warning in lirc_zilog.c Signed-off-by: NGulsah Kose <gulsah.1004@gmail.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
-