• Stephen Boyd's avatar
    soc: qcom: cmd-db: Make endian-agnostic · 36b0aefd
    Stephen Boyd authored
    This driver deals with memory that is stored in little-endian format.
    Update the structures with the proper little-endian types and then
    do the proper conversions when reading the fields. Note that we compare
    the ids with a memcmp() because we already pad out the string 'id' field
    to exactly 8 bytes with the strncpy() onto the stack.
    
    Cc: Mahesh Sivasubramanian <msivasub@codeaurora.org>
    Cc: Lina Iyer <ilina@codeaurora.org>
    Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
    Cc: Evan Green <evgreen@chromium.org>
    Signed-off-by: default avatarStephen Boyd <swboyd@chromium.org>
    Signed-off-by: default avatarAndy Gross <andy.gross@linaro.org>
    36b0aefd
cmd-db.c 7.46 KB