drivers: sensor: Fix unused variable warnings

Fixes unused variable warnings for the adxl362 and lis2dh sensor
drivers. These warnings were found when updating the build_all tests to
include missing sensor drivers.

Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
This commit is contained in:
Maureen Helm 2018-09-18 08:11:09 -05:00 committed by Anas Nashif
parent c764e021d8
commit 2875c052dc
3 changed files with 0 additions and 3 deletions

View File

@ -570,7 +570,6 @@ static int adxl362_init(struct device *dev)
{
struct adxl362_data *data = dev->driver_data;
u8_t value;
int ret;
data->spi = device_get_binding(CONFIG_ADXL362_SPI_DEV_NAME);
if (!data->spi) {

View File

@ -183,7 +183,6 @@ static int lis2dh_freq_to_odr_val(u16_t freq)
static int lis2dh_acc_odr_set(struct device *dev, u16_t freq)
{
struct lis2dh_data *lis2dh = dev->driver_data;
int odr;
int status;
u8_t value;

View File

@ -158,7 +158,6 @@ int lis2dh_trigger_set(struct device *dev,
int lis2dh_acc_slope_config(struct device *dev, enum sensor_attribute attr,
const struct sensor_value *val)
{
struct lis2dh_data *lis2dh = dev->driver_data;
int status;
if (attr == SENSOR_ATTR_SLOPE_TH) {