1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

drivers/bmp180: saul driver cleanup

This commit is contained in:
Alexandre Abadie 2017-01-11 09:24:40 +01:00
parent df5888539a
commit 47b83b7412

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,