Tomasz Stanislawski t.stanislaws@samsung.com writes:
I recommend to change the semantics for unlimited number of segments from 'value 0' to:
#define DMA_SEGMENTS_COUNT_UNLIMITED ((unsigned long)INT_MAX)
Using INT_MAX will allow using safe conversions between signed and unsigned integers.
LONG_MAX seems cleaner regardless.