Commit 7bf8a14d authored by Vadim Pasternak's avatar Vadim Pasternak Committed by Hans de Goede

platform/x86: mlx-platform: Add cosmetic changes for alignment

Align the first argument with open parenthesis for
platform_device_register_resndata() calls.
Signed-off-by: default avatarVadim Pasternak <vadimp@nvidia.com>
Reviewed-by: default avatarOleksandr Shamray <oleksandrs@nvidia.com>
Link: https://lore.kernel.org/r/20220711084559.62447-3-vadimp@nvidia.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent e05d6b65
...@@ -4830,22 +4830,20 @@ static int __init mlxplat_init(void) ...@@ -4830,22 +4830,20 @@ static int __init mlxplat_init(void)
nr = (nr == mlxplat_max_adap_num) ? -1 : nr; nr = (nr == mlxplat_max_adap_num) ? -1 : nr;
if (mlxplat_i2c) if (mlxplat_i2c)
mlxplat_i2c->regmap = priv->regmap; mlxplat_i2c->regmap = priv->regmap;
priv->pdev_i2c = platform_device_register_resndata( priv->pdev_i2c = platform_device_register_resndata(&mlxplat_dev->dev, "i2c_mlxcpld",
&mlxplat_dev->dev, "i2c_mlxcpld", nr, mlxplat_mlxcpld_resources,
nr, mlxplat_mlxcpld_resources, ARRAY_SIZE(mlxplat_mlxcpld_resources),
ARRAY_SIZE(mlxplat_mlxcpld_resources), mlxplat_i2c, sizeof(*mlxplat_i2c));
mlxplat_i2c, sizeof(*mlxplat_i2c));
if (IS_ERR(priv->pdev_i2c)) { if (IS_ERR(priv->pdev_i2c)) {
err = PTR_ERR(priv->pdev_i2c); err = PTR_ERR(priv->pdev_i2c);
goto fail_alloc; goto fail_alloc;
} }
for (i = 0; i < mlxplat_mux_num; i++) { for (i = 0; i < mlxplat_mux_num; i++) {
priv->pdev_mux[i] = platform_device_register_resndata( priv->pdev_mux[i] = platform_device_register_resndata(&priv->pdev_i2c->dev,
&priv->pdev_i2c->dev, "i2c-mux-reg", i, NULL, 0,
"i2c-mux-reg", i, NULL, &mlxplat_mux_data[i],
0, &mlxplat_mux_data[i], sizeof(mlxplat_mux_data[i]));
sizeof(mlxplat_mux_data[i]));
if (IS_ERR(priv->pdev_mux[i])) { if (IS_ERR(priv->pdev_mux[i])) {
err = PTR_ERR(priv->pdev_mux[i]); err = PTR_ERR(priv->pdev_mux[i]);
goto fail_platform_mux_register; goto fail_platform_mux_register;
...@@ -4906,11 +4904,10 @@ static int __init mlxplat_init(void) ...@@ -4906,11 +4904,10 @@ static int __init mlxplat_init(void)
/* Add FAN driver. */ /* Add FAN driver. */
if (mlxplat_fan) { if (mlxplat_fan) {
mlxplat_fan->regmap = priv->regmap; mlxplat_fan->regmap = priv->regmap;
priv->pdev_fan = platform_device_register_resndata( priv->pdev_fan = platform_device_register_resndata(&mlxplat_dev->dev, "mlxreg-fan",
&mlxplat_dev->dev, "mlxreg-fan", PLATFORM_DEVID_NONE, NULL, 0,
PLATFORM_DEVID_NONE, NULL, 0, mlxplat_fan,
mlxplat_fan, sizeof(*mlxplat_fan));
sizeof(*mlxplat_fan));
if (IS_ERR(priv->pdev_fan)) { if (IS_ERR(priv->pdev_fan)) {
err = PTR_ERR(priv->pdev_fan); err = PTR_ERR(priv->pdev_fan);
goto fail_platform_io_regs_register; goto fail_platform_io_regs_register;
...@@ -4924,11 +4921,10 @@ static int __init mlxplat_init(void) ...@@ -4924,11 +4921,10 @@ static int __init mlxplat_init(void)
for (j = 0; j < MLXPLAT_CPLD_WD_MAX_DEVS; j++) { for (j = 0; j < MLXPLAT_CPLD_WD_MAX_DEVS; j++) {
if (mlxplat_wd_data[j]) { if (mlxplat_wd_data[j]) {
mlxplat_wd_data[j]->regmap = priv->regmap; mlxplat_wd_data[j]->regmap = priv->regmap;
priv->pdev_wd[j] = platform_device_register_resndata( priv->pdev_wd[j] =
&mlxplat_dev->dev, "mlx-wdt", platform_device_register_resndata(&mlxplat_dev->dev, "mlx-wdt", j,
j, NULL, 0, NULL, 0, mlxplat_wd_data[j],
mlxplat_wd_data[j], sizeof(*mlxplat_wd_data[j]));
sizeof(*mlxplat_wd_data[j]));
if (IS_ERR(priv->pdev_wd[j])) { if (IS_ERR(priv->pdev_wd[j])) {
err = PTR_ERR(priv->pdev_wd[j]); err = PTR_ERR(priv->pdev_wd[j]);
goto fail_platform_wd_register; goto fail_platform_wd_register;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment