Commit fcc572e0 authored by Anisetti Avinash Krishna's avatar Anisetti Avinash Krishna Committed by Carles Cufi
Browse files

drivers: dma: intel_lpss: Fix channel count condition



Fixes channel count comparison by using connect const.

Signed-off-by: default avatarAnisetti Avinash Krishna <anisetti.avinash.krishna@intel.com>
parent abcfd0cb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}