Skip to content
Commit a1904fa4 authored by Maxime Ripard's avatar Maxime Ripard Committed by Florian Fainelli
Browse files

firmware: raspberrypi: Fix type assignment



We silently cast an unsigned int into a __le32 which makes sparse
complain. Moreover, we never actually convert endianness between the
CPU's and the expected little-endian value. Fix both at once by calling
cpu_to_le32().

Fixes: 40c31955 ("firmware: raspberrypi: Provide a helper to query a clock max rate")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/r/20221116091712.1309651-3-maxime@cerno.tech


Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20230102115255.17802-1-maxime@cerno.tech


Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent 1b929c02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment