• Trent Piepho's avatar
    spi: Use of_property_read_u32 · 89da4293
    Trent Piepho authored
    Instead of getting the raw property, checking the length, and doing
    endian conversion each time, use the OF function
    of_property_read_u32() that does all that.
    
    Error messages are slightly improved with error codes from
    of_property_read_u32() for different ways the property may be invalid
    (missing, too short, etc.)
    Signed-off-by: default avatarTrent Piepho <tpiepho@gmail.com>
    Signed-off-by: default avatarMark Brown <broonie@linaro.org>
    89da4293
spi.c 50.7 KB