dma: Fix error_callback enable/disable confusion
Previously the logic was inverted for error_callback_en where 0 was enablement and 1 was disable. This was likely done so that the default, sensibly so, was to enable the error callback if possible. A variety of in tree users had confused the enable/disable value. Change the name of the flag to error_callback_dis where the default remains 0 (do not disable the callback!) and correct in tree uses of the flag where it seemed incorrect. Signed-off-by: Tom Burdick <thomas.burdick@intel.com>
This commit is contained in:
parent
85b3e458ce
commit
4180d70439
20 changed files with 32 additions and 34 deletions
|
@ -483,7 +483,7 @@ static int dma_smartbond_config(const struct device *dev, uint32_t channel, stru
|
|||
}
|
||||
|
||||
/* Error handling is not supported; just warn user. */
|
||||
if (cfg->error_callback_en) {
|
||||
if (!cfg->error_callback_dis) {
|
||||
LOG_WRN("Error handling is not supported");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue