• Bernhard Nortmann's avatar
    fel: refactor aw_fel_write() · edc48b5e
    Bernhard Nortmann authored
    
    
    This patch introduces a new function aw_write_buffer() to
    allow a better distinction between FEL write operations.
    
    aw_fel_write() is meant for "privileged" internal use, while
    aw_write_buffer() now represents the preferred entry point
    for user code like the "write", "fill" or "clear" commands.
    
    There is some deliberate code duplication here that makes sense
    when combined with the next patch, where the aw_usb_write()
    call will differ. We want aw_fel_write() to enforce no progress
    update/callback, while aw_write_buffer() will (optionally)
    support it.
    Signed-off-by: default avatarBernhard Nortmann <bernhard.nortmann@web.de>
    Reviewed-by: default avatarSiarhei Siamashka <siarhei.siamashka@gmail.com>
    edc48b5e
fel.c 42.2 KB