2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/drivers/iio/pressure
Hartmut Knaack 44cf3798a3 iio:pressure:bmp280: cleanup
The calculations for temperature and pressure compensation were already slightly
optimized in comparison to the datasheet. So, it makes sense to optimize even a
bit more, making proper use of C operators:
  - variable t in bmp280_compensate_temp() can be eliminated by directly
    returning the result of the relevant equation.
  - make use of the += operator and eliminate an unnecessary parenthesis level in
    bmp280_compensate_press().
When the initialization of the ctrl_meas register fails, the error message will
now mention the right register name.
During probe, i2c_set_clientdata() is called, although it is not necessary. Drop
it.

Signed-off-by: Hartmut Knaack <knaack.h@gmx.de>
Reviewed-by: Vlad Dogaru <vlad.dogaru@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
2014-12-26 10:32:34 +00:00
..
bmp280.c iio:pressure:bmp280: cleanup 2014-12-26 10:32:34 +00:00
hid-sensor-press.c iio: remove .owner field for driver using module_platform_driver 2014-08-26 21:08:38 +01:00
Kconfig iio: add bmp280 pressure and temperature driver 2014-10-22 20:28:27 +01:00
Makefile iio: add bmp280 pressure and temperature driver 2014-10-22 20:28:27 +01:00
mpl115.c iio: Add Freescale MPL115A2 pressure / temperature sensor driver 2014-05-03 11:31:36 +01:00
mpl3115.c iio: Fix two mpl3115 issues in measurement conversion 2014-05-29 17:38:36 +01:00
st_pressure_buffer.c iio:pressure: Changed pressure data variable name to press_data 2014-10-04 11:26:09 +01:00
st_pressure_core.c iio:pressure: Changed pressure data variable name to press_data 2014-10-04 11:26:09 +01:00
st_pressure_i2c.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_pressure_spi.c iio:common: Set the device pointer into ST common sensors library 2014-10-04 11:26:21 +01:00
st_pressure.h iio:pressure: Removed unnecessary parameter on common_probe function 2014-10-04 11:25:38 +01:00
t5403.c iio: Add t5403 barometric pressure sensor driver 2014-06-14 13:15:30 +01:00