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:
parent
361555721b
commit
79852e216e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue