Commit 07df5b7c authored by Kamal Heib's avatar Kamal Heib Committed by Greg Kroah-Hartman

staging: greybus: arche-platform.c: Fix alignment should match open parenthesis

Fix "alignment should match open parenthesis" checkpatch.pl error.
Signed-off-by: default avatarKamal Heib <kamalheib1@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 339744e2
...@@ -233,7 +233,7 @@ arche_platform_coldboot_seq(struct arche_platform_drvdata *arche_pdata) ...@@ -233,7 +233,7 @@ arche_platform_coldboot_seq(struct arche_platform_drvdata *arche_pdata)
ret = clk_prepare_enable(arche_pdata->svc_ref_clk); ret = clk_prepare_enable(arche_pdata->svc_ref_clk);
if (ret) { if (ret) {
dev_err(arche_pdata->dev, "failed to enable svc_ref_clk: %d\n", dev_err(arche_pdata->dev, "failed to enable svc_ref_clk: %d\n",
ret); ret);
return ret; return ret;
} }
...@@ -269,7 +269,7 @@ arche_platform_fw_flashing_seq(struct arche_platform_drvdata *arche_pdata) ...@@ -269,7 +269,7 @@ arche_platform_fw_flashing_seq(struct arche_platform_drvdata *arche_pdata)
ret = clk_prepare_enable(arche_pdata->svc_ref_clk); ret = clk_prepare_enable(arche_pdata->svc_ref_clk);
if (ret) { if (ret) {
dev_err(arche_pdata->dev, "failed to enable svc_ref_clk: %d\n", dev_err(arche_pdata->dev, "failed to enable svc_ref_clk: %d\n",
ret); ret);
return ret; return ret;
} }
...@@ -312,7 +312,8 @@ arche_platform_poweroff_seq(struct arche_platform_drvdata *arche_pdata) ...@@ -312,7 +312,8 @@ arche_platform_poweroff_seq(struct arche_platform_drvdata *arche_pdata)
} }
static ssize_t state_store(struct device *dev, static ssize_t state_store(struct device *dev,
struct device_attribute *attr, const char *buf, size_t count) struct device_attribute *attr,
const char *buf, size_t count)
{ {
struct platform_device *pdev = to_platform_device(dev); struct platform_device *pdev = to_platform_device(dev);
struct arche_platform_drvdata *arche_pdata = platform_get_drvdata(pdev); struct arche_platform_drvdata *arche_pdata = platform_get_drvdata(pdev);
...@@ -376,7 +377,7 @@ static ssize_t state_store(struct device *dev, ...@@ -376,7 +377,7 @@ static ssize_t state_store(struct device *dev,
} }
static ssize_t state_show(struct device *dev, static ssize_t state_show(struct device *dev,
struct device_attribute *attr, char *buf) struct device_attribute *attr, char *buf)
{ {
struct arche_platform_drvdata *arche_pdata = dev_get_drvdata(dev); struct arche_platform_drvdata *arche_pdata = dev_get_drvdata(dev);
...@@ -443,7 +444,7 @@ static int arche_platform_probe(struct platform_device *pdev) ...@@ -443,7 +444,7 @@ static int arche_platform_probe(struct platform_device *pdev)
/* setup svc reset gpio */ /* setup svc reset gpio */
arche_pdata->is_reset_act_hi = of_property_read_bool(np, arche_pdata->is_reset_act_hi = of_property_read_bool(np,
"svc,reset-active-high"); "svc,reset-active-high");
arche_pdata->svc_reset_gpio = of_get_named_gpio(np, arche_pdata->svc_reset_gpio = of_get_named_gpio(np,
"svc,reset-gpio", "svc,reset-gpio",
0); 0);
...@@ -457,7 +458,7 @@ static int arche_platform_probe(struct platform_device *pdev) ...@@ -457,7 +458,7 @@ static int arche_platform_probe(struct platform_device *pdev)
return ret; return ret;
} }
ret = gpio_direction_output(arche_pdata->svc_reset_gpio, ret = gpio_direction_output(arche_pdata->svc_reset_gpio,
arche_pdata->is_reset_act_hi); arche_pdata->is_reset_act_hi);
if (ret) { if (ret) {
dev_err(dev, "failed to set svc-reset gpio dir:%d\n", ret); dev_err(dev, "failed to set svc-reset gpio dir:%d\n", ret);
return ret; return ret;
...@@ -465,7 +466,8 @@ static int arche_platform_probe(struct platform_device *pdev) ...@@ -465,7 +466,8 @@ static int arche_platform_probe(struct platform_device *pdev)
arche_platform_set_state(arche_pdata, ARCHE_PLATFORM_STATE_OFF); arche_platform_set_state(arche_pdata, ARCHE_PLATFORM_STATE_OFF);
arche_pdata->svc_sysboot_gpio = of_get_named_gpio(np, arche_pdata->svc_sysboot_gpio = of_get_named_gpio(np,
"svc,sysboot-gpio", 0); "svc,sysboot-gpio",
0);
if (arche_pdata->svc_sysboot_gpio < 0) { if (arche_pdata->svc_sysboot_gpio < 0) {
dev_err(dev, "failed to get sysboot gpio\n"); dev_err(dev, "failed to get sysboot gpio\n");
return arche_pdata->svc_sysboot_gpio; return arche_pdata->svc_sysboot_gpio;
...@@ -483,7 +485,8 @@ static int arche_platform_probe(struct platform_device *pdev) ...@@ -483,7 +485,8 @@ static int arche_platform_probe(struct platform_device *pdev)
/* setup the clock request gpio first */ /* setup the clock request gpio first */
arche_pdata->svc_refclk_req = of_get_named_gpio(np, arche_pdata->svc_refclk_req = of_get_named_gpio(np,
"svc,refclk-req-gpio", 0); "svc,refclk-req-gpio",
0);
if (arche_pdata->svc_refclk_req < 0) { if (arche_pdata->svc_refclk_req < 0) {
dev_err(dev, "failed to get svc clock-req gpio\n"); dev_err(dev, "failed to get svc clock-req gpio\n");
return arche_pdata->svc_refclk_req; return arche_pdata->svc_refclk_req;
...@@ -525,7 +528,7 @@ static int arche_platform_probe(struct platform_device *pdev) ...@@ -525,7 +528,7 @@ static int arche_platform_probe(struct platform_device *pdev)
"wake detect"); "wake detect");
if (ret) { if (ret) {
dev_err(dev, "Failed requesting wake_detect gpio %d\n", dev_err(dev, "Failed requesting wake_detect gpio %d\n",
arche_pdata->wake_detect_gpio); arche_pdata->wake_detect_gpio);
return ret; return ret;
} }
......
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