diff mbox series

[2/3] pinctrl: qcom: spmi-mpp: Add PM8226 compatible

Message ID 20220124171538.18088-2-rayyan@ansari.sh (mailing list archive)
State Not Applicable
Headers show
Series [1/3] dt-bindings: pinctrl: qcom,pmic-mpp: Document PM8226 compatible | expand

Commit Message

Rayyan Ansari Jan. 24, 2022, 5:15 p.m. UTC
The PM8226 provides 8 MPPs.
Add a compatible to support them.

Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>
---
 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Bjorn Andersson Jan. 31, 2022, 11:50 p.m. UTC | #1
On Mon 24 Jan 11:15 CST 2022, Rayyan Ansari wrote:

> The PM8226 provides 8 MPPs.
> Add a compatible to support them.
> 
> Signed-off-by: Rayyan Ansari <rayyan@ansari.sh>

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>

> ---
>  drivers/pinctrl/qcom/pinctrl-spmi-mpp.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
> index b80723928b7e..6937157f50b3 100644
> --- a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
> +++ b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
> @@ -961,6 +961,7 @@ static int pmic_mpp_remove(struct platform_device *pdev)
>  
>  static const struct of_device_id pmic_mpp_of_match[] = {
>  	{ .compatible = "qcom,pm8019-mpp", .data = (void *) 6 },
> +	{ .compatible = "qcom,pm8226-mpp", .data = (void *) 8 },
>  	{ .compatible = "qcom,pm8841-mpp", .data = (void *) 4 },
>  	{ .compatible = "qcom,pm8916-mpp", .data = (void *) 4 },
>  	{ .compatible = "qcom,pm8941-mpp", .data = (void *) 8 },
> -- 
> 2.34.1
>
diff mbox series

Patch

diff --git a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
index b80723928b7e..6937157f50b3 100644
--- a/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
+++ b/drivers/pinctrl/qcom/pinctrl-spmi-mpp.c
@@ -961,6 +961,7 @@  static int pmic_mpp_remove(struct platform_device *pdev)
 
 static const struct of_device_id pmic_mpp_of_match[] = {
 	{ .compatible = "qcom,pm8019-mpp", .data = (void *) 6 },
+	{ .compatible = "qcom,pm8226-mpp", .data = (void *) 8 },
 	{ .compatible = "qcom,pm8841-mpp", .data = (void *) 4 },
 	{ .compatible = "qcom,pm8916-mpp", .data = (void *) 4 },
 	{ .compatible = "qcom,pm8941-mpp", .data = (void *) 8 },