serial: mctrl-gpio: rename init function
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 30 Sep 2015 08:19:40 +0000 (10:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 17:46:43 +0000 (18:46 +0100)
This is done before adding more functionality to the init function with
the existing name. As this new functionality conflicts with stuff
drivers are required to implement themselves up to I want to convert
them one by one to make reviewing and reverting more easy in case I
broke something.

Once mctrl_gpio_init is there and all drivers are converted
mctrl_gpio_init_noauto can be removed again.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c
drivers/tty/serial/clps711x.c
drivers/tty/serial/mxs-auart.c
drivers/tty/serial/serial_mctrl_gpio.c
drivers/tty/serial/serial_mctrl_gpio.h

index a89fd2998dbc78c237848158c0dbcf5889e655a9..90900263ca6cf5abd3b0ecefc33e97c0a813bfa5 100644 (file)
@@ -2692,7 +2692,7 @@ static int atmel_init_gpios(struct atmel_uart_port *p, struct device *dev)
        enum mctrl_gpio_idx i;
        struct gpio_desc *gpiod;
 
-       p->gpios = mctrl_gpio_init(dev, 0);
+       p->gpios = mctrl_gpio_init_noauto(dev, 0);
        if (IS_ERR(p->gpios))
                return PTR_ERR(p->gpios);
 
index d5d2dd7c79174820432363d4a7076566eafc2204..b3a4e0cdddaab29b0b86e42738a763e279411354 100644 (file)
@@ -500,7 +500,7 @@ static int uart_clps711x_probe(struct platform_device *pdev)
 
        platform_set_drvdata(pdev, s);
 
-       s->gpios = mctrl_gpio_init(&pdev->dev, 0);
+       s->gpios = mctrl_gpio_init_noauto(&pdev->dev, 0);
        if (IS_ERR(s->gpios))
            return PTR_ERR(s->gpios);
 
index 7c7f30809849d24d337f8f2eedf4a83ed23907f1..cd0414bbe094898ed3fdeca0a941549312472581 100644 (file)
@@ -1196,7 +1196,7 @@ static int mxs_auart_init_gpios(struct mxs_auart_port *s, struct device *dev)
        enum mctrl_gpio_idx i;
        struct gpio_desc *gpiod;
 
-       s->gpios = mctrl_gpio_init(dev, 0);
+       s->gpios = mctrl_gpio_init_noauto(dev, 0);
        if (IS_ERR(s->gpios))
                return PTR_ERR(s->gpios);
 
index 402f7fb541333a67a0383a4ac2fb3754ed2f395d..1cdedd3bfb438686e1025b300b73324e66fc15e0 100644 (file)
@@ -82,7 +82,7 @@ unsigned int mctrl_gpio_get(struct mctrl_gpios *gpios, unsigned int *mctrl)
 }
 EXPORT_SYMBOL_GPL(mctrl_gpio_get);
 
-struct mctrl_gpios *mctrl_gpio_init(struct device *dev, unsigned int idx)
+struct mctrl_gpios *mctrl_gpio_init_noauto(struct device *dev, unsigned int idx)
 {
        struct mctrl_gpios *gpios;
        enum mctrl_gpio_idx i;
@@ -110,7 +110,7 @@ struct mctrl_gpios *mctrl_gpio_init(struct device *dev, unsigned int idx)
 
        return gpios;
 }
-EXPORT_SYMBOL_GPL(mctrl_gpio_init);
+EXPORT_SYMBOL_GPL(mctrl_gpio_init_noauto);
 
 void mctrl_gpio_free(struct device *dev, struct mctrl_gpios *gpios)
 {
index 400ba0494a1798ed4304c5b07da2b68e03234a4a..6d046fcf744e4fc851aa2d0f3acad5350128b407 100644 (file)
@@ -65,7 +65,8 @@ struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios,
  * Returns a pointer to the allocated mctrl structure if ok, -ENOMEM on
  * allocation error.
  */
-struct mctrl_gpios *mctrl_gpio_init(struct device *dev, unsigned int idx);
+struct mctrl_gpios *mctrl_gpio_init_noauto(struct device *dev,
+                                          unsigned int idx);
 
 /*
  * Free the mctrl_gpios structure.
@@ -95,7 +96,7 @@ struct gpio_desc *mctrl_gpio_to_gpiod(struct mctrl_gpios *gpios,
 }
 
 static inline
-struct mctrl_gpios *mctrl_gpio_init(struct device *dev, unsigned int idx)
+struct mctrl_gpios *mctrl_gpio_init_noauto(struct device *dev, unsigned int idx)
 {
        return ERR_PTR(-ENOSYS);
 }
This page took 0.037439 seconds and 5 git commands to generate.