summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNathan Barrett-Morrison <[email protected]>2023-05-15 15:49:58 -0400
committerSean Anderson <[email protected]>2023-11-01 15:13:15 -0400
commitaed6480fadede2b87103568aaa117a423a1c3fdc (patch)
tree297a9f10ab356b293bce3dca26f277c167ca6d70 /include
parentfb428b61819444b9337075f49c72f326f5d12085 (diff)
drivers: clk: Adjust temp var data type to properly match that of struct clk_ops
In commit 5c5992cb90cf ("clk: Add debugging for return values"), a temporary storage variable was added around the ops->get_rate() call inside clk_get_rate(), so that the result could be passed through log_ret. This temporary variable was declared as an int, yet when we look in struct clk_ops, we can see this needs to be a ulong: ulong (*get_rate)(struct clk *clk); This was resulting in a signed to unsigned casting error on our builds, where a clock value of 0xABCDABCD was being incorrectly cast to 0xFFFFFFFFABCDABCD. Signed-off-by: Nathan Barrett-Morrison <[email protected]> Reviewed-by: Sean Anderson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions