Skip to content

Commit

Permalink
drivers: dma: intel_lpss: Fix channel count condition
Browse files Browse the repository at this point in the history
Fixes channel count comparison by using connect const.

Signed-off-by: Anisetti Avinash Krishna	<[email protected]>
  • Loading branch information
akanisetti authored and carlescufi committed Dec 19, 2023
1 parent abcfd0c commit fcc572e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/dma_intel_lpss.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int dma_intel_lpss_reload(const struct device *dev, uint32_t channel,
struct dw_dma_chan_data *chan_data;
uint32_t ctrl_hi = 0;

if (channel >= DW_MAX_CHAN) {
if (channel >= DW_CHAN_COUNT) {
return -EINVAL;
}

Expand Down

0 comments on commit fcc572e

Please sign in to comment.