Skip to content

clk: Declare mux tables as const u32[]

Jonathan Neuschäfer linux-arm-kernel linux-arm-msm linux-clk lkml 2 versions – Applied

Status from this message: Applied to clk-next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 10 repliesApplied
  2. v15 patches 1 replySuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/7clk: nxp: Remove unused variabledrivers/clk/nxp/clk-lpc18xx-cgu.c+1 -21 reply
2/7clk: nxp: Declare mux table parameter as const u32 *drivers/clk/nxp/clk-lpc18xx-cgu.c+1 -11 reply
3/7clk: mux: Declare u32 *table parameter as constdrivers/clk/clk-mux.c include/linux/clk-provider.h+11 -111 reply
4/7clk: hisilicon: Remove unnecessary cast of mux table to u32 *drivers/clk/hisilicon/clk.c+1 -11 reply
5/7clk: mmp: Declare mux tables as const u32[]drivers/clk/mmp/clk-of-mmp2.c+2 -21 reply
6/7clk: qcom: Declare mux table as const u32[]drivers/clk/qcom/kpss-xcc.c+1 -11 reply
7/7clk: pistachio: Declare mux table as const u32[]drivers/clk/pistachio/clk-pistachio.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/7] clk: Declare mux tables as const u32[]

I noticed that the 'table' parameter to clk_register_mux_table is never used for modifying the table elements, and so it can be declared const.

In version 2 I'm addressing two warnings in the clk-lpc18xx-cgu driver that I previously missed.

Jonathan Neuschäfer (7):
clk: nxp: Remove unused variable
clk: nxp: Declare mux table parameter as const u32 *
clk: mux: Declare u32 *table parameter as const
clk: hisilicon: Remove unnecessary cast of mux table to u32 *
clk: mmp: Declare mux tables as const u32[]
clk: qcom: Declare mux table as const u32[]
clk: pistachio: Declare mux table as const u32[]

 drivers/clk/clk-mux.c                 | 10 +++++-----
 drivers/clk/hisilicon/clk.c           |  2 +-
 drivers/clk/mmp/clk-of-mmp2.c         |  4 ++--
 drivers/clk/nxp/clk-lpc18xx-cgu.c     |  5 ++---
 drivers/clk/pistachio/clk-pistachio.c |  2 +-
 drivers/clk/qcom/kpss-xcc.c           |  2 +-
 include/linux/clk-provider.h          | 12 ++++++------
 7 files changed, 18 insertions(+), 19 deletions(-)

--
2.34.1