diff options
| author | Rob Herring (Arm) <robh@kernel.org> | 2024-10-10 11:27:20 -0500 |
|---|---|---|
| committer | Rob Herring (Arm) <robh@kernel.org> | 2024-10-15 08:58:36 -0500 |
| commit | d79616b04f0e08178ceb716a5d2ef60ab723d532 (patch) | |
| tree | 74d6d45c9aca317ff8a3cec4bbb4961c2b45454b /include/linux/of_address.h | |
| parent | 3539089bcc86806d5705f094f46b3dbd61606961 (diff) | |
| download | linux-d79616b04f0e08178ceb716a5d2ef60ab723d532.tar.gz linux-d79616b04f0e08178ceb716a5d2ef60ab723d532.tar.bz2 linux-d79616b04f0e08178ceb716a5d2ef60ab723d532.zip | |
of/address: Constify of_busses[] array and pointers
The of_busses array is fixed, so it and all struct of_bus pointers can
be const.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20241010-dt-const-v1-7-87a51f558425@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Diffstat (limited to 'include/linux/of_address.h')
| -rw-r--r-- | include/linux/of_address.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of_address.h b/include/linux/of_address.h index bd46dbcc6e88..9e034363788a 100644 --- a/include/linux/of_address.h +++ b/include/linux/of_address.h @@ -10,7 +10,7 @@ struct of_bus; struct of_pci_range_parser { struct device_node *node; - struct of_bus *bus; + const struct of_bus *bus; const __be32 *range; const __be32 *end; int na; |
