drivers: dma: dma_dw_common: Updated check condition of DMA channel

updating check condition for dma channel for correct limit

Signed-off-by: Bindu S <bindu.s@intel.com>
This commit is contained in:
Bindu S 2023-08-08 11:08:16 +05:30 committed by Carles Cufí
commit 79852e216e

View file

@ -809,7 +809,7 @@ int dw_dma_get_status(const struct device *dev, uint32_t channel,
const struct dw_dma_dev_cfg *const dev_cfg = dev->config;
struct dw_dma_chan_data *chan_data;
if (channel >= DW_MAX_CHAN) {
if (channel >= DW_CHAN_COUNT) {
return -EINVAL;
}