pinctrl: broxton: No need to take pointer of a pointer
Subsystems (3)
PATCH 1/1 pinctrl: broxton: No need to take pointer of a pointer
There is no need to take pointer of a pointer to an array of SoC data in platform driver.
Do it in the same way as it's done for ACPI.
Signed-off-by Andy Shevchenko <[email protected]>
--- drivers/pinctrl/intel/pinctrl-broxton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/pinctrl/intel/pinctrl-broxton.c +2 -2
@@ -1004,8 +1004,8 @@ static const struct acpi_device_id bxt_pinctrl_acpi_match[] = {MODULE_DEVICE_TABLE (acpi, bxt_pinctrl_acpi_match);static const struct platform_device_id bxt_pinctrl_platform_ids[] = { - {"apollolake-pinctrl" , (kernel_ulong_t)&apl_pinctrl_soc_data }, - {"broxton-pinctrl" , (kernel_ulong_t)&bxt_pinctrl_soc_data }, + {"apollolake-pinctrl" , (kernel_ulong_t )apl_pinctrl_soc_data }, + {"broxton-pinctrl" , (kernel_ulong_t )bxt_pinctrl_soc_data }, { }, };
Signature · 1 line
2.11.0
Quoted 6 lines · Andy Shevchenko
There is no need to take pointer of a pointer to an array of SoC data in platform driver.
Do it in the same way as it's done for ACPI.
Signed-off-by Andy Shevchenko <[email protected]>
Acked-by Mika Westerberg <[email protected]>
Quoted 6 lines · Andy Shevchenko
There is no need to take pointer of a pointer to an array of SoC data in platform driver.
Do it in the same way as it's done for ACPI.
Signed-off-by Andy Shevchenko <[email protected]>
Patch applied with Mika's ACK.
Yours,
Linus Walleij