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:
Tom Burdick 2024-04-09 14:06:25 -05:00 committed by Anas Nashif
commit 4180d70439
20 changed files with 32 additions and 34 deletions

View file

@ -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");
}