Skip to content

Commit

Permalink
drivers: adc: ltc2451: address compliance issues
Browse files Browse the repository at this point in the history
Compliance

Signed-off-by: Ethan Duckett <[email protected]>
  • Loading branch information
ethan-duckett-brill committed Nov 2, 2023
1 parent e65f7e7 commit f0a0587
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/adc/adc_ltc2451.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ struct ltc2451_data {
};

static int ltc2451_channel_setup(const struct device *dev,
const struct adc_channel_cfg *channel_cfg)
const struct adc_channel_cfg *channel_cfg)
{
(void)dev;
(void)channel_cfg;
Expand Down Expand Up @@ -60,7 +60,7 @@ static int ltc2451_read_latest_conversion(const struct device *dev,
if (err) {
LOG_ERR("LTC read failed (err %d)", err);
} else {
value_buf = (uint16_t*)sequence->buffer;
value_buf = (uint16_t *)sequence->buffer;
value_buf[0] = (rd_buf[0] << 8) | rd_buf[1];
}

Expand Down

0 comments on commit f0a0587

Please sign in to comment.