Skip to content

ICM4268X: fix typos missed going from ICM42688 to ICM4268X #93742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/sensor/tdk/icm4268x/icm4268x.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static inline void icm4268x_accel_reg_to_hz(uint8_t odr, struct sensor_value *ou
out->val2 = 0;
return;
case ICM4268X_DT_ACCEL_ODR_16000:
out->val1 = 1600;
out->val1 = 16000;
out->val2 = 0;
return;
case ICM4268X_DT_ACCEL_ODR_8000:
Expand Down
4 changes: 2 additions & 2 deletions drivers/sensor/tdk/icm4268x/icm4268x_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ static int icm4268x_decoder_get_size_info(struct sensor_chan_spec chan_spec, siz
}
}

static bool icm24688_decoder_has_trigger(const uint8_t *buffer, enum sensor_trigger_type trigger)
static bool icm4268x_decoder_has_trigger(const uint8_t *buffer, enum sensor_trigger_type trigger)
{
const struct icm4268x_fifo_data *edata = (const struct icm4268x_fifo_data *)buffer;

Expand All @@ -754,7 +754,7 @@ SENSOR_DECODER_API_DT_DEFINE() = {
.get_frame_count = icm4268x_decoder_get_frame_count,
.get_size_info = icm4268x_decoder_get_size_info,
.decode = icm4268x_decoder_decode,
.has_trigger = icm24688_decoder_has_trigger,
.has_trigger = icm4268x_decoder_has_trigger,
};

int icm4268x_get_decoder(const struct device *dev, const struct sensor_decoder_api **decoder)
Expand Down