staging iio: adc: palmas: fix typo palams->palmas
Laxman Dewangan [Mon, 30 Sep 2013 11:36:05 +0000 (16:36 +0530)]
Change-Id: Ie95d936fc2295559df889c640f52c41c9a048a71
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/280246
Reviewed-by: Automatic_Commit_Validation_User
(cherry picked from commit 496eb9e29844042ddb201b7dd28983c547cca3eb)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

drivers/staging/iio/adc/palmas_gpadc.c

index 72fa864..ef021a8 100644 (file)
@@ -127,7 +127,7 @@ struct palmas_gpadc {
  *     After 100us, force the GPADC state machine to be OFF by using the
  *             GPADC_CTRL1.  GPADC_FORCE bit = 0
  */
-static int palams_disable_auto_conversion(struct palmas_gpadc *adc)
+static int palmas_disable_auto_conversion(struct palmas_gpadc *adc)
 {
        int ret;
 
@@ -175,7 +175,7 @@ static irqreturn_t palmas_gpadc_irq_auto(int irq, void *data)
        struct palmas_gpadc *adc = data;
 
        dev_info(adc->dev, "Threshold interrupt %d occurs\n", irq);
-       palams_disable_auto_conversion(adc);
+       palmas_disable_auto_conversion(adc);
        return IRQ_HANDLED;
 }
 
@@ -564,7 +564,7 @@ static int palmas_gpadc_probe(struct platform_device *pdev)
                ret = request_threaded_irq(adc->irq_auto_0, NULL,
                                palmas_gpadc_irq_auto,
                                IRQF_ONESHOT | IRQF_EARLY_RESUME,
-                               "palams-adc-auto-0", adc);
+                               "palmas-adc-auto-0", adc);
                if (ret < 0) {
                        dev_err(adc->dev, "request auto0 irq %d failed: %dn",
                                adc->irq_auto_0, ret);
@@ -580,7 +580,7 @@ static int palmas_gpadc_probe(struct platform_device *pdev)
                ret = request_threaded_irq(adc->irq_auto_1, NULL,
                                palmas_gpadc_irq_auto,
                                IRQF_ONESHOT | IRQF_EARLY_RESUME,
-                               "palams-adc-auto-1", adc);
+                               "palmas-adc-auto-1", adc);
                if (ret < 0) {
                        dev_err(adc->dev, "request auto1 irq %d failed: %dn",
                                adc->irq_auto_1, ret);
@@ -675,7 +675,7 @@ static int palmas_gpadc_remove(struct platform_device *pdev)
 }
 
 #ifdef CONFIG_PM_SLEEP
-static int palams_adc_wakeup_configure(struct palmas_gpadc *adc)
+static int palmas_adc_wakeup_configure(struct palmas_gpadc *adc)
 {
        int adc_period, conv;
        int i;
@@ -781,7 +781,7 @@ static int palams_adc_wakeup_configure(struct palmas_gpadc *adc)
        return 0;
 }
 
-static int palams_adc_wakeup_reset(struct palmas_gpadc *adc)
+static int palmas_adc_wakeup_reset(struct palmas_gpadc *adc)
 {
        int ret;
 
@@ -792,7 +792,7 @@ static int palams_adc_wakeup_reset(struct palmas_gpadc *adc)
                return ret;
        }
 
-       ret = palams_disable_auto_conversion(adc);
+       ret = palmas_disable_auto_conversion(adc);
        if (ret < 0) {
                dev_err(adc->dev, "Disable auto conversion failed: %d\n", ret);
                return ret;
@@ -810,7 +810,7 @@ static int palmas_gpadc_suspend(struct device *dev)
        if (!device_may_wakeup(dev) || !wakeup)
                return 0;
 
-       ret = palams_adc_wakeup_configure(adc);
+       ret = palmas_adc_wakeup_configure(adc);
        if (ret < 0)
                return ret;
 
@@ -832,7 +832,7 @@ static int palmas_gpadc_resume(struct device *dev)
        if (!device_may_wakeup(dev) || !wakeup)
                return 0;
 
-       ret = palams_adc_wakeup_reset(adc);
+       ret = palmas_adc_wakeup_reset(adc);
        if (ret < 0)
                return ret;