drivers/sensor: Clean unused axis structures

axis1bit16 and axis3bit16 unions are no longer used
and can be deleted from all .h files that are referencing
them.

Signed-off-by: Armando Visconti <armando.visconti@st.com>
This commit is contained in:
Armando Visconti 2021-06-14 18:30:47 +02:00 committed by Carles Cufí
commit 098a5f51aa
6 changed files with 0 additions and 40 deletions

View file

@ -17,11 +17,6 @@
#include <drivers/sensor.h>
#include "iis2dh_reg.h"
union axis3bit16_t {
int16_t i16bit[3];
uint8_t u8bit[6];
};
/*
* Return ODR reg value based on data rate set
*/

View file

@ -19,11 +19,6 @@
#include <sys/util.h>
#include "iis3dhhc_reg.h"
union axis3bit16_t {
int16_t i16bit[3];
uint8_t u8bit[6];
};
struct iis3dhhc_config {
char *master_dev_name;
int (*bus_init)(const struct device *dev);

View file

@ -18,16 +18,6 @@
#include <sys/util.h>
#include "ism330dhcx_reg.h"
union axis3bit16_t {
int16_t i16bit[3];
uint8_t u8bit[6];
};
union axis1bit16_t {
int16_t i16bit;
uint8_t u8bit[2];
};
#define ISM330DHCX_EN_BIT 0x01
#define ISM330DHCX_DIS_BIT 0x00

View file

@ -17,11 +17,6 @@
#include <drivers/sensor.h>
#include "lis2dw12_reg.h"
union axis3bit16_t {
int16_t i16bit[3];
uint8_t u8bit[6];
};
#if defined(CONFIG_LIS2DW12_ODR_1_6)
#define LIS2DW12_DEFAULT_ODR LIS2DW12_XL_ODR_1Hz6_LP_ONLY
#elif defined(CONFIG_LIS2DW12_ODR_12_5)

View file

@ -20,16 +20,6 @@
#include <sys/util.h>
#include "lps22hh_reg.h"
union axis1bit32_t {
int32_t i32bit;
uint8_t u8bit[4];
};
union axis1bit16_t {
int16_t i16bit;
uint8_t u8bit[2];
};
struct lps22hh_config {
char *master_dev_name;
int (*bus_init)(const struct device *dev);

View file

@ -19,11 +19,6 @@
#include <sys/util.h>
#include "stts751_reg.h"
union axis1bit16_t {
int16_t i16bit;
uint8_t u8bit[2];
};
struct stts751_config {
char *master_dev_name;
int (*bus_init)(const struct device *dev);