1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #6322 from aabadie/bmp180_cleanup

drivers/bmp180: saul driver cleanup
This commit is contained in:
Peter Kietzmann 2017-01-12 14:54:12 +01:00 committed by GitHub
commit 96817f406f

View File

@ -27,7 +27,7 @@
static int32_t temperature, pressure;
static int check_and_read_temperature(void *dev, phydat_t *res)
static int read_temperature(void *dev, phydat_t *res)
{
bmp180_t *d = (bmp180_t *)dev;
@ -38,7 +38,7 @@ static int check_and_read_temperature(void *dev, phydat_t *res)
return 1;
}
static int check_and_read_pressure(void *dev, phydat_t *res)
static int read_pressure(void *dev, phydat_t *res)
{
bmp180_t *d = (bmp180_t *)dev;
@ -50,16 +50,6 @@ static int check_and_read_pressure(void *dev, phydat_t *res)
return 1;
}
static int read_temperature(void *dev, phydat_t *res)
{
return check_and_read_temperature(dev, res);
}
static int read_pressure(void *dev, phydat_t *res)
{
return check_and_read_pressure(dev, res);
}
const saul_driver_t bmp180_temperature_saul_driver = {
.read = read_temperature,
.write = saul_notsup,