[PW_SID:966972] pinctrl: Constify pointers to 'pinctrl_desc' and more#452
[PW_SID:966972] pinctrl: Constify pointers to 'pinctrl_desc' and more#452linux-riscv-bot wants to merge 17 commits into
Conversation
Always descent to drivers/pinctrl/starfive/ because limiting it with SOC_STARFIVE is redundant since all of its Kconfig entries are already have "depends on SOC_STARFIVE". This allows compile testing on other architectures with allyesconfig. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Pinctrl drivers for K210, TB10X and ZYNQ do not reference any machine headers, thus can be compile tested for increased build coverage. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Internal functions obtaining pointers to 'struct pinctrl_desc' do not modify the contents so they can be made pointers to const. This makes code safer, explicit and later allows constifying 'pinctrl_desc' in pinctrl core code. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Pin controller core code only stores the pointer to 'struct pinctrl_desc' and does not modify it anywhere. The pointer can be changed to pointer to const which makes the code safer, explicit and later allows constifying 'pinctrl_desc' allocations in individual drivers. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The local static 'struct pinctrl_desc' is not modified, so can be made const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The local static 'struct pinctrl_desc' is not modified, so can be made const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The local static 'struct pinctrl_desc' is not modified, so can be made const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
…finition Assign 'struct pinctrl_desc' .npins member in definition to make clear that number of pins is fixed and have less code in the probe. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
…finition Assign 'struct pinctrl_desc' .npins member in definition to make clear that number of pins is fixed and have less code in the probe. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
…finition Assign 'struct pinctrl_desc' .npins member in definition to make clear that number of pins is fixed and have less code in the probe. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Assign 'struct pinctrl_desc' .pins and .npins members in definition to make clear that number of pins is fixed and have less code in the probe. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Assign 'struct pinctrl_desc' .pins, .npins and other members in definition to make clear that number of pins is fixed and have less code in the probe. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Assign 'struct pinctrl_desc' .pins and .npins members in definition to make clear that number of pins is fixed and have less code in the probe. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
Assign 'struct pinctrl_desc' .pins and .npins members in definition to make clear that number of pins is fixed and have less code in the probe. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The local static 'struct pinctrl_desc' is not modified, so can be made const for code safety after moving .pins and .npins assignment to definition. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The local static 'struct pinctrl_desc' is not modified, so can be made const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
The local static 'struct pinctrl_desc' is not modified, so can be made const for code safety. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 1: "[01/17] pinctrl: starfive: Allow compile testing on other platforms" |
|
Patch 2: "[02/17] pinctrl: Allow compile testing for K210, TB10X and ZYNQ" |
|
Patch 15: "[15/17] pinctrl: pistachio: Constify static 'pinctrl_desc'" |
|
Patch 15: "[15/17] pinctrl: pistachio: Constify static 'pinctrl_desc'" |
|
Patch 15: "[15/17] pinctrl: pistachio: Constify static 'pinctrl_desc'" |
|
Patch 15: "[15/17] pinctrl: pistachio: Constify static 'pinctrl_desc'" |
|
Patch 15: "[15/17] pinctrl: pistachio: Constify static 'pinctrl_desc'" |
|
Patch 15: "[15/17] pinctrl: pistachio: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 16: "[16/17] pinctrl: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
|
Patch 17: "[17/17] rtc: stm32: Constify static 'pinctrl_desc'" |
PR for series 966972 applied to workflow
Name: pinctrl: Constify pointers to 'pinctrl_desc' and more
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=966972
Version: 1