aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/arche-platform.c
diff options
context:
space:
mode:
authorVaibhav Hiremath <vaibhav.hiremath@linaro.org>2016-05-17 22:39:47 +0530
committerGreg Kroah-Hartman <gregkh@google.com>2016-05-20 16:31:26 -0700
commit7ba535ec69ff670976e69adeec24dac2b65560ee (patch)
treec9fd3d1efa051bde6aa9491595ec6a8e8a6d2ee6 /drivers/staging/greybus/arche-platform.c
parentgreybus: arche-platform: Do not assert wake/detect signal to SVC (diff)
downloadlinux-dev-7ba535ec69ff670976e69adeec24dac2b65560ee.tar.xz
linux-dev-7ba535ec69ff670976e69adeec24dac2b65560ee.zip
greybus: arche-platform: Rename assert_wakedetect=>arche_platform_wd_irq_en
Now, since AP module does not send any signal to SVC, so it automatically restricts the wake/detect gpio to input. So rename assert_wakedetect() fn to arche_platform_wd_irq_en(), as per implementation. Testing Done: Tested on EVT1.5 platform. Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/arche-platform.c')
-rw-r--r--drivers/staging/greybus/arche-platform.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/greybus/arche-platform.c b/drivers/staging/greybus/arche-platform.c
index c02ff58ddefe..bc450770771f 100644
--- a/drivers/staging/greybus/arche-platform.c
+++ b/drivers/staging/greybus/arche-platform.c
@@ -205,7 +205,7 @@ static int apb_poweroff(struct device *dev, void *data)
return 0;
}
-static void assert_wakedetect(struct arche_platform_drvdata *arche_pdata)
+static void arche_platform_wd_irq_en(struct arche_platform_drvdata *arche_pdata)
{
/* Enable interrupt here, to read event back from SVC */
gpio_direction_input(arche_pdata->wake_detect_gpio);
@@ -406,7 +406,7 @@ static ssize_t state_store(struct device *dev,
if (arche_pdata->state == ARCHE_PLATFORM_STATE_ACTIVE)
goto exit;
- assert_wakedetect(arche_pdata);
+ arche_platform_wd_irq_en(arche_pdata);
ret = arche_platform_coldboot_seq(arche_pdata);
} else if (sysfs_streq(buf, "standby")) {
@@ -479,7 +479,7 @@ static int arche_platform_pm_notifier(struct notifier_block *notifier,
arche_platform_poweroff_seq(arche_pdata);
break;
case PM_POST_SUSPEND:
- assert_wakedetect(arche_pdata);
+ arche_platform_wd_irq_en(arche_pdata);
arche_platform_coldboot_seq(arche_pdata);
break;
default:
@@ -603,7 +603,7 @@ static int arche_platform_probe(struct platform_device *pdev)
return ret;
}
- assert_wakedetect(arche_pdata);
+ arche_platform_wd_irq_en(arche_pdata);
ret = device_create_file(dev, &dev_attr_state);
if (ret) {