Commit 60fb3405 authored by Viresh Kumar's avatar Viresh Kumar Committed by Greg Kroah-Hartman

greybus: Remove extra blank lines

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: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 6554efa2
...@@ -1164,7 +1164,6 @@ static struct snd_soc_codec_driver soc_codec_dev_gbaudio = { ...@@ -1164,7 +1164,6 @@ static struct snd_soc_codec_driver soc_codec_dev_gbaudio = {
.ignore_pmdown_time = 1, .ignore_pmdown_time = 1,
}; };
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int gbaudio_codec_suspend(struct device *dev) static int gbaudio_codec_suspend(struct device *dev)
{ {
......
...@@ -221,7 +221,6 @@ static int gb_audio_probe(struct gb_bundle *bundle, ...@@ -221,7 +221,6 @@ static int gb_audio_probe(struct gb_bundle *bundle,
int ret, i; int ret, i;
struct gb_audio_topology *topology; struct gb_audio_topology *topology;
/* There should be at least one Management and one Data cport */ /* There should be at least one Management and one Data cport */
if (bundle->num_cports < 2) if (bundle->num_cports < 2)
return -ENODEV; return -ENODEV;
...@@ -367,7 +366,6 @@ static void gb_audio_disconnect(struct gb_bundle *bundle) ...@@ -367,7 +366,6 @@ static void gb_audio_disconnect(struct gb_bundle *bundle)
struct gbaudio_module_info *gbmodule = greybus_get_drvdata(bundle); struct gbaudio_module_info *gbmodule = greybus_get_drvdata(bundle);
struct gbaudio_data_connection *dai, *_dai; struct gbaudio_data_connection *dai, *_dai;
/* cleanup module related resources first */ /* cleanup module related resources first */
gbaudio_unregister_module(gbmodule); gbaudio_unregister_module(gbmodule);
......
...@@ -872,7 +872,6 @@ static int gbaudio_tplg_process_routes(struct gbaudio_module_info *module, ...@@ -872,7 +872,6 @@ static int gbaudio_tplg_process_routes(struct gbaudio_module_info *module,
if (!dapm_routes) if (!dapm_routes)
return -ENOMEM; return -ENOMEM;
module->dapm_routes = dapm_routes; module->dapm_routes = dapm_routes;
curr = routes; curr = routes;
......
...@@ -56,7 +56,6 @@ static ssize_t state_store(struct device *dev, struct device_attribute *attr, ...@@ -56,7 +56,6 @@ static ssize_t state_store(struct device *dev, struct device_attribute *attr,
} }
static DEVICE_ATTR_RW(state); static DEVICE_ATTR_RW(state);
static struct attribute *bundle_attrs[] = { static struct attribute *bundle_attrs[] = {
&dev_attr_bundle_class.attr, &dev_attr_bundle_class.attr,
&dev_attr_bundle_id.attr, &dev_attr_bundle_id.attr,
......
...@@ -513,7 +513,6 @@ gb_connection_control_disconnected(struct gb_connection *connection) ...@@ -513,7 +513,6 @@ gb_connection_control_disconnected(struct gb_connection *connection)
return; return;
} }
ret = gb_control_disconnected_operation(control, cport_id); ret = gb_control_disconnected_operation(control, cport_id);
if (ret) { if (ret) {
dev_warn(&connection->bundle->dev, dev_warn(&connection->bundle->dev,
......
...@@ -556,7 +556,6 @@ static void gb_gpio_irqchip_remove(struct gb_gpio_controller *ggc) ...@@ -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 * gb_gpio_irqchip_add() - adds an irqchip to a gpio chip
* @chip: the gpio chip to add the irqchip to * @chip: the gpio chip to add the irqchip to
......
...@@ -116,7 +116,6 @@ static int gb_hid_request_handler(struct gb_operation *op) ...@@ -116,7 +116,6 @@ static int gb_hid_request_handler(struct gb_operation *op)
return 0; return 0;
} }
static int gb_hid_report_len(struct hid_report *report) static int gb_hid_report_len(struct hid_report *report)
{ {
return ((report->size - 1) >> 3) + 1 + return ((report->size - 1) >> 3) + 1 +
......
...@@ -290,7 +290,6 @@ static int gb_power_supply_prop_descriptors_get(struct gb_power_supply *gbpsy) ...@@ -290,7 +290,6 @@ static int gb_power_supply_prop_descriptors_get(struct gb_power_supply *gbpsy)
goto out_put_operation; goto out_put_operation;
} }
/* Store available properties */ /* Store available properties */
for (i = 0; i < gbpsy->properties_count; i++) { for (i = 0; i < gbpsy->properties_count; i++) {
gbpsy->props[i].prop = resp->props[i].property; gbpsy->props[i].prop = resp->props[i].property;
...@@ -512,7 +511,6 @@ static int property_is_writeable(struct power_supply *b, ...@@ -512,7 +511,6 @@ static int property_is_writeable(struct power_supply *b,
return is_psy_prop_writeable(gbpsy, psp); return is_psy_prop_writeable(gbpsy, psp);
} }
#ifndef CORE_OWNS_PSY_STRUCT #ifndef CORE_OWNS_PSY_STRUCT
static int gb_power_supply_register(struct gb_power_supply *gbpsy) 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) ...@@ -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) static void _gb_power_supply_release(struct gb_power_supply *gbpsy)
{ {
gbpsy->update_interval = 0; gbpsy->update_interval = 0;
cancel_delayed_work_sync(&gbpsy->work); cancel_delayed_work_sync(&gbpsy->work);
......
...@@ -80,7 +80,6 @@ static int gb_pwm_config_operation(struct gb_pwm_chip *pwmc, ...@@ -80,7 +80,6 @@ static int gb_pwm_config_operation(struct gb_pwm_chip *pwmc,
&request, sizeof(request), NULL, 0); &request, sizeof(request), NULL, 0);
} }
static int gb_pwm_set_polarity_operation(struct gb_pwm_chip *pwmc, static int gb_pwm_set_polarity_operation(struct gb_pwm_chip *pwmc,
u8 which, u8 polarity) u8 which, u8 polarity)
{ {
......
...@@ -383,7 +383,6 @@ static void gb_spi_cleanup(struct spi_device *spi) ...@@ -383,7 +383,6 @@ static void gb_spi_cleanup(struct spi_device *spi)
/* Nothing to do for now */ /* Nothing to do for now */
} }
/* Routines to get controller information */ /* Routines to get controller information */
/* /*
......
...@@ -44,7 +44,6 @@ static ssize_t ap_intf_id_show(struct device *dev, ...@@ -44,7 +44,6 @@ static ssize_t ap_intf_id_show(struct device *dev,
} }
static DEVICE_ATTR_RO(ap_intf_id); static DEVICE_ATTR_RO(ap_intf_id);
// FIXME // FIXME
// This is a hack, we need to do this "right" and clean the interface up // 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 // properly, not just forcibly yank the thing out of the system and hope for the
......
...@@ -597,7 +597,6 @@ static void gb_tty_throttle(struct tty_struct *tty) ...@@ -597,7 +597,6 @@ static void gb_tty_throttle(struct tty_struct *tty)
gb_tty->ctrlout &= ~GB_UART_CTRL_RTS; gb_tty->ctrlout &= ~GB_UART_CTRL_RTS;
retval = send_control(gb_tty, gb_tty->ctrlout); retval = send_control(gb_tty, gb_tty->ctrlout);
} }
} }
static void gb_tty_unthrottle(struct tty_struct *tty) 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) ...@@ -710,7 +709,6 @@ static int wait_serial_change(struct gb_tty *gb_tty, unsigned long arg)
} while (!retval); } while (!retval);
return retval; return retval;
} }
static int get_serial_usage(struct gb_tty *gb_tty, static int get_serial_usage(struct gb_tty *gb_tty,
...@@ -924,7 +922,6 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev, ...@@ -924,7 +922,6 @@ static int gb_uart_probe(struct gbphy_device *gbphy_dev,
goto exit_connection_disable; goto exit_connection_disable;
} }
return 0; return 0;
exit_connection_disable: exit_connection_disable:
......
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