Thread (3 messages) 3 messages, 3 authors, 2019-09-06

Re: [PATCH] clk: spear: Make structure i2s_sclk_masks constant

From: Stephen Boyd <sboyd@kernel.org>
Date: 2019-09-06 17:27:57
Also in: linux-clk

Quoting Nishka Dasgupta (2019-08-13 01:57:14)
Static structure i2s_sclk_masks, having type aux_clk_masks, is only used
when it is passed as the sixth argument to function clk_register_aux().
However, clk_register_aux() is defined with its sixth argument as const.
Hence i2s_sclk_masks is not modified by clk_register_aux, which is also
the only usage of the former. Therefore make i2s_sclk_masks constant as
it is never modified.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <redacted>
---
Applied to clk-next


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help