greybus: Remove extra blank lines
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 10 Jun 2016 09:29:07 +0000 (14:59 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 10 Jun 2016 23:32:33 +0000 (16:32 -0700)
This patch removes few blank lines across the repository at places where
two blank lines were present together or when a blank line is present at
the start or end of a routine.

Note that this doesn't remove most of them from greybus_protocols.h as
they were added on purpose.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
12 files changed:
drivers/staging/greybus/audio_codec.c
drivers/staging/greybus/audio_module.c
drivers/staging/greybus/audio_topology.c
drivers/staging/greybus/bundle.c
drivers/staging/greybus/connection.c
drivers/staging/greybus/gpio.c
drivers/staging/greybus/hid.c
drivers/staging/greybus/power_supply.c
drivers/staging/greybus/pwm.c
drivers/staging/greybus/spilib.c
drivers/staging/greybus/svc.c
drivers/staging/greybus/uart.c

index 2feac6b..45e12b1 100644 (file)
@@ -1164,7 +1164,6 @@ static struct snd_soc_codec_driver soc_codec_dev_gbaudio = {
        .ignore_pmdown_time = 1,
 };
 
-
 #ifdef CONFIG_PM
 static int gbaudio_codec_suspend(struct device *dev)
 {
index 8100132..d87b998 100644 (file)
@@ -221,7 +221,6 @@ static int gb_audio_probe(struct gb_bundle *bundle,
        int ret, i;
        struct gb_audio_topology *topology;
 
-
        /* There should be at least one Management and one Data cport */
        if (bundle->num_cports < 2)
                return -ENODEV;
@@ -367,7 +366,6 @@ static void gb_audio_disconnect(struct gb_bundle *bundle)
        struct gbaudio_module_info *gbmodule = greybus_get_drvdata(bundle);
        struct gbaudio_data_connection *dai, *_dai;
 
-
        /* cleanup module related resources first */
        gbaudio_unregister_module(gbmodule);
 
index 1e07686..1f9e8b6 100644 (file)
@@ -872,7 +872,6 @@ static int gbaudio_tplg_process_routes(struct gbaudio_module_info *module,
        if (!dapm_routes)
                return -ENOMEM;
 
-
        module->dapm_routes = dapm_routes;
        curr = routes;
 
index c1c3d67..80f54c9 100644 (file)
@@ -56,7 +56,6 @@ static ssize_t state_store(struct device *dev, struct device_attribute *attr,
 }
 static DEVICE_ATTR_RW(state);
 
-
 static struct attribute *bundle_attrs[] = {
        &dev_attr_bundle_class.attr,
        &dev_attr_bundle_id.attr,
index e0ee82f..28076d0 100644 (file)
@@ -513,7 +513,6 @@ gb_connection_control_disconnected(struct gb_connection *connection)
                return;
        }
 
-
        ret = gb_control_disconnected_operation(control, cport_id);
        if (ret) {
                dev_warn(&connection->bundle->dev,
index f60cc1d..deae265 100644 (file)
@@ -556,7 +556,6 @@ static void gb_gpio_irqchip_remove(struct gb_gpio_controller *ggc)
        }
 }
 
-
 /**
  * gb_gpio_irqchip_add() - adds an irqchip to a gpio chip
  * @chip: the gpio chip to add the irqchip to
index fd4a7e0..ca0c949 100644 (file)
@@ -116,7 +116,6 @@ static int gb_hid_request_handler(struct gb_operation *op)
        return 0;
 }
 
-
 static int gb_hid_report_len(struct hid_report *report)
 {
        return ((report->size - 1) >> 3) + 1 +
index 8d6570d..e96c24d 100644 (file)
@@ -290,7 +290,6 @@ static int gb_power_supply_prop_descriptors_get(struct gb_power_supply *gbpsy)
                goto out_put_operation;
        }
 
-
        /* Store available properties */
        for (i = 0; i < gbpsy->properties_count; i++) {
                gbpsy->props[i].prop = resp->props[i].property;
@@ -512,7 +511,6 @@ static int property_is_writeable(struct power_supply *b,
        return is_psy_prop_writeable(gbpsy, psp);
 }
 
-
 #ifndef CORE_OWNS_PSY_STRUCT
 static int gb_power_supply_register(struct gb_power_supply *gbpsy)
 {
@@ -562,7 +560,6 @@ static void _gb_power_supply_free(struct gb_power_supply *gbpsy)
 
 static void _gb_power_supply_release(struct gb_power_supply *gbpsy)
 {
-
        gbpsy->update_interval = 0;
 
        cancel_delayed_work_sync(&gbpsy->work);
index 7131232..1438b2e 100644 (file)
@@ -80,7 +80,6 @@ static int gb_pwm_config_operation(struct gb_pwm_chip *pwmc,
                                 &request, sizeof(request), NULL, 0);
 }
 
-
 static int gb_pwm_set_polarity_operation(struct gb_pwm_chip *pwmc,
                                         u8 which, u8 polarity)
 {
index 79ae044..527909b 100644 (file)
@@ -383,7 +383,6 @@ static void gb_spi_cleanup(struct spi_device *spi)
        /* Nothing to do for now */
 }
 
-
 /* Routines to get controller information */
 
 /*
index cee058f..d467ceb 100644 (file)
@@ -44,7 +44,6 @@ static ssize_t ap_intf_id_show(struct device *dev,
 }
 static DEVICE_ATTR_RO(ap_intf_id);
 
-
 // FIXME
 // This is a hack, we need to do this "right" and clean the interface up
 // properly, not just forcibly yank the thing out of the system and hope for the
index 7460bdb..6260569 100644 (file)
@@ -597,7 +597,6 @@ static void gb_tty_throttle(struct tty_struct *tty)
                gb_tty->ctrlout &= ~GB_UART_CTRL_RTS;
                retval = send_control(gb_tty, gb_tty->ctrlout);
        }
-
 }
 
 static void gb_tty_unthrottle(struct tty_struct *tty)
@@ -710,7 +709,6 @@ static int wait_serial_change(struct gb_tty *gb_tty, unsigned long arg)
        } while (!retval);
 
        return retval;
-
 }
 
 static int get_serial_usage(struct gb_tty *gb_tty,
@@ -924,7 +922,6 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev,
                goto exit_connection_disable;
        }
 
-
        return 0;
 
 exit_connection_disable: