sensors: icm42688: Remove unused function from driver
This function is no longer used and causes a compiler error. Signed-off-by: Tristan Honscheid <honscheid@google.com>
This commit is contained in:
parent
5e14088a3f
commit
2b06884afe
1 changed files with 2 additions and 24 deletions
|
@ -77,28 +77,6 @@ static int icm42688_get_shift(enum sensor_channel channel, int accel_fs, int gyr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static enum sensor_channel icm42688_get_channel_from_position(int pos)
|
|
||||||
{
|
|
||||||
switch (pos) {
|
|
||||||
case 0:
|
|
||||||
return SENSOR_CHAN_DIE_TEMP;
|
|
||||||
case 1:
|
|
||||||
return SENSOR_CHAN_ACCEL_X;
|
|
||||||
case 2:
|
|
||||||
return SENSOR_CHAN_ACCEL_Y;
|
|
||||||
case 3:
|
|
||||||
return SENSOR_CHAN_ACCEL_Z;
|
|
||||||
case 4:
|
|
||||||
return SENSOR_CHAN_GYRO_X;
|
|
||||||
case 5:
|
|
||||||
return SENSOR_CHAN_GYRO_Y;
|
|
||||||
case 6:
|
|
||||||
return SENSOR_CHAN_GYRO_Z;
|
|
||||||
default:
|
|
||||||
return SENSOR_CHAN_MAX;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int icm42688_convert_raw_to_q31(struct icm42688_cfg *cfg, enum sensor_channel chan, int32_t reading,
|
int icm42688_convert_raw_to_q31(struct icm42688_cfg *cfg, enum sensor_channel chan, int32_t reading,
|
||||||
q31_t *out)
|
q31_t *out)
|
||||||
{
|
{
|
||||||
|
@ -221,7 +199,7 @@ int icm42688_encode(const struct device *dev, const enum sensor_channel *const c
|
||||||
}
|
}
|
||||||
|
|
||||||
static int icm42688_one_shot_decode(const uint8_t *buffer, enum sensor_channel channel,
|
static int icm42688_one_shot_decode(const uint8_t *buffer, enum sensor_channel channel,
|
||||||
size_t channel_idx, sensor_frame_iterator_t *fit,
|
size_t channel_idx, uint32_t *fit,
|
||||||
uint16_t max_count, void *data_out)
|
uint16_t max_count, void *data_out)
|
||||||
{
|
{
|
||||||
const struct icm42688_encoded_data *edata = (const struct icm42688_encoded_data *)buffer;
|
const struct icm42688_encoded_data *edata = (const struct icm42688_encoded_data *)buffer;
|
||||||
|
@ -340,7 +318,7 @@ static int icm42688_one_shot_decode(const uint8_t *buffer, enum sensor_channel c
|
||||||
}
|
}
|
||||||
|
|
||||||
static int icm42688_decoder_decode(const uint8_t *buffer, enum sensor_channel channel,
|
static int icm42688_decoder_decode(const uint8_t *buffer, enum sensor_channel channel,
|
||||||
size_t channel_idx, sensor_frame_iterator_t *fit,
|
size_t channel_idx, uint32_t *fit,
|
||||||
uint16_t max_count, void *data_out)
|
uint16_t max_count, void *data_out)
|
||||||
{
|
{
|
||||||
return icm42688_one_shot_decode(buffer, channel, channel_idx, fit, max_count, data_out);
|
return icm42688_one_shot_decode(buffer, channel, channel_idx, fit, max_count, data_out);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue