mirror of
https://github.com/torvalds/linux.git
synced 2024-11-16 17:12:06 +00:00
staging: hisi-spmi-controller: rename spmi-channel property
The spmi-channel is not used on other drivers. So, rename it, in order to document that this is specific to those devices. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Link: https://lore.kernel.org/r/ed45fc5d84d7b531343ee5d3466ebfac26217da0.1624542940.git.mchehab+huawei@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
83fb097ba8
commit
fcc84fe12f
@ -290,7 +290,7 @@ static int spmi_controller_probe(struct platform_device *pdev)
|
||||
goto err_put_controller;
|
||||
}
|
||||
|
||||
ret = of_property_read_u32(pdev->dev.of_node, "spmi-channel",
|
||||
ret = of_property_read_u32(pdev->dev.of_node, "hisilicon,spmi-channel",
|
||||
&spmi_controller->channel);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "can not get channel\n");
|
||||
|
@ -14,7 +14,7 @@ description: |
|
||||
It is a MIPI System Power Management (SPMI) controller.
|
||||
|
||||
The PMIC part is provided by
|
||||
drivers/staging/hikey9xx/hisilicon,hi6421-spmi-pmic.yaml.
|
||||
./Documentation/devicetree/bindings/mfd/hisilicon,hi6421-spmi-pmic.yaml.
|
||||
|
||||
allOf:
|
||||
- $ref: spmi.yaml#
|
||||
@ -30,7 +30,7 @@ properties:
|
||||
reg:
|
||||
maxItems: 1
|
||||
|
||||
spmi-channel:
|
||||
hisilicon,spmi-channel:
|
||||
$ref: /schemas/types.yaml#/definitions/uint32
|
||||
description: |
|
||||
number of the Kirin 970 SPMI channel where the SPMI devices are connected.
|
||||
@ -38,10 +38,12 @@ properties:
|
||||
required:
|
||||
- compatible
|
||||
- reg
|
||||
- spmi-channel
|
||||
- hisilicon,spmi-channel
|
||||
|
||||
patternProperties:
|
||||
"@[0-9a-f]$":
|
||||
type: object
|
||||
|
||||
description: |
|
||||
PMIC properties, which are specific to the used SPMI PMIC device(s).
|
||||
When used in combination with HiSilicon 6421v600, the properties
|
||||
@ -61,7 +63,7 @@ examples:
|
||||
#address-cells = <2>;
|
||||
#size-cells = <0>;
|
||||
reg = <0x0 0xfff24000 0x0 0x1000>;
|
||||
spmi-channel = <2>;
|
||||
hisilicon,spmi-channel = <2>;
|
||||
|
||||
pmic@0 {
|
||||
reg = <0 0>;
|
||||
|
Loading…
Reference in New Issue
Block a user