Commit 8478c35a authored by Cristian Sicilia's avatar Cristian Sicilia Committed by Greg Kroah-Hartman

staging: greybus: Parenthesis alignment

Some parameters are aligned with parentheses.
Some parentheses was opened at end of line.
Signed-off-by: default avatarCristian Sicilia <sicilia.cristian@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2f5496d8
...@@ -25,8 +25,8 @@ struct gb_audio_manager_module_attribute { ...@@ -25,8 +25,8 @@ struct gb_audio_manager_module_attribute {
const char *buf, size_t count); const char *buf, size_t count);
}; };
static ssize_t gb_audio_module_attr_show( static ssize_t gb_audio_module_attr_show(struct kobject *kobj,
struct kobject *kobj, struct attribute *attr, char *buf) struct attribute *attr, char *buf)
{ {
struct gb_audio_manager_module_attribute *attribute; struct gb_audio_manager_module_attribute *attribute;
struct gb_audio_manager_module *module; struct gb_audio_manager_module *module;
......
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
#include "audio_manager.h" #include "audio_manager.h"
#include "audio_manager_private.h" #include "audio_manager_private.h"
static ssize_t manager_sysfs_add_store( static ssize_t manager_sysfs_add_store(struct kobject *kobj,
struct kobject *kobj, struct kobj_attribute *attr, struct kobj_attribute *attr,
const char *buf, size_t count) const char *buf, size_t count)
{ {
struct gb_audio_manager_module_descriptor desc = { {0} }; struct gb_audio_manager_module_descriptor desc = { {0} };
...@@ -36,8 +36,8 @@ static ssize_t manager_sysfs_add_store( ...@@ -36,8 +36,8 @@ static ssize_t manager_sysfs_add_store(
static struct kobj_attribute manager_add_attribute = static struct kobj_attribute manager_add_attribute =
__ATTR(add, 0664, NULL, manager_sysfs_add_store); __ATTR(add, 0664, NULL, manager_sysfs_add_store);
static ssize_t manager_sysfs_remove_store( static ssize_t manager_sysfs_remove_store(struct kobject *kobj,
struct kobject *kobj, struct kobj_attribute *attr, struct kobj_attribute *attr,
const char *buf, size_t count) const char *buf, size_t count)
{ {
int id; int id;
...@@ -57,8 +57,8 @@ static ssize_t manager_sysfs_remove_store( ...@@ -57,8 +57,8 @@ static ssize_t manager_sysfs_remove_store(
static struct kobj_attribute manager_remove_attribute = static struct kobj_attribute manager_remove_attribute =
__ATTR(remove, 0664, NULL, manager_sysfs_remove_store); __ATTR(remove, 0664, NULL, manager_sysfs_remove_store);
static ssize_t manager_sysfs_dump_store( static ssize_t manager_sysfs_dump_store(struct kobject *kobj,
struct kobject *kobj, struct kobj_attribute *attr, struct kobj_attribute *attr,
const char *buf, size_t count) const char *buf, size_t count)
{ {
int id; int id;
...@@ -81,8 +81,8 @@ static ssize_t manager_sysfs_dump_store( ...@@ -81,8 +81,8 @@ static ssize_t manager_sysfs_dump_store(
static struct kobj_attribute manager_dump_attribute = static struct kobj_attribute manager_dump_attribute =
__ATTR(dump, 0664, NULL, manager_sysfs_dump_store); __ATTR(dump, 0664, NULL, manager_sysfs_dump_store);
static void manager_sysfs_init_attribute( static void manager_sysfs_init_attribute(struct kobject *kobj,
struct kobject *kobj, struct kobj_attribute *kattr) struct kobj_attribute *kattr)
{ {
int err; int err;
......
...@@ -1086,7 +1086,8 @@ static int gbaudio_tplg_create_widget(struct gbaudio_module_info *module, ...@@ -1086,7 +1086,8 @@ static int gbaudio_tplg_create_widget(struct gbaudio_module_info *module,
case snd_soc_dapm_switch: case snd_soc_dapm_switch:
*dw = (struct snd_soc_dapm_widget) *dw = (struct snd_soc_dapm_widget)
SND_SOC_DAPM_SWITCH_E(w->name, SND_SOC_NOPM, 0, 0, SND_SOC_DAPM_SWITCH_E(w->name, SND_SOC_NOPM, 0, 0,
widget_kctls, gbaudio_widget_event, widget_kctls,
gbaudio_widget_event,
SND_SOC_DAPM_PRE_PMU | SND_SOC_DAPM_PRE_PMU |
SND_SOC_DAPM_POST_PMD); SND_SOC_DAPM_POST_PMD);
break; break;
......
...@@ -86,7 +86,8 @@ static void gb_bootrom_timedout(struct work_struct *work) ...@@ -86,7 +86,8 @@ static void gb_bootrom_timedout(struct work_struct *work)
} }
static void gb_bootrom_set_timeout(struct gb_bootrom *bootrom, static void gb_bootrom_set_timeout(struct gb_bootrom *bootrom,
enum next_request_type next, unsigned long timeout) enum next_request_type next,
unsigned long timeout)
{ {
bootrom->next_request = next; bootrom->next_request = next;
schedule_delayed_work(&bootrom->dwork, msecs_to_jiffies(timeout)); schedule_delayed_work(&bootrom->dwork, msecs_to_jiffies(timeout));
......
...@@ -183,7 +183,8 @@ int gb_control_mode_switch_operation(struct gb_control *control) ...@@ -183,7 +183,8 @@ int gb_control_mode_switch_operation(struct gb_control *control)
operation = gb_operation_create_core(control->connection, operation = gb_operation_create_core(control->connection,
GB_CONTROL_TYPE_MODE_SWITCH, GB_CONTROL_TYPE_MODE_SWITCH,
0, 0, GB_OPERATION_FLAG_UNIDIRECTIONAL, 0, 0,
GB_OPERATION_FLAG_UNIDIRECTIONAL,
GFP_KERNEL); GFP_KERNEL);
if (!operation) if (!operation)
return -ENOMEM; return -ENOMEM;
......
...@@ -648,7 +648,8 @@ static int gb_gpio_probe(struct gbphy_device *gbphy_dev, ...@@ -648,7 +648,8 @@ static int gb_gpio_probe(struct gbphy_device *gbphy_dev,
if (!ggc) if (!ggc)
return -ENOMEM; return -ENOMEM;
connection = gb_connection_create(gbphy_dev->bundle, connection =
gb_connection_create(gbphy_dev->bundle,
le16_to_cpu(gbphy_dev->cport_desc->id), le16_to_cpu(gbphy_dev->cport_desc->id),
gb_gpio_request_handler); gb_gpio_request_handler);
if (IS_ERR(connection)) { if (IS_ERR(connection)) {
......
...@@ -211,11 +211,13 @@ static void gb_hid_init_reports(struct gb_hid *ghid) ...@@ -211,11 +211,13 @@ static void gb_hid_init_reports(struct gb_hid *ghid)
struct hid_report *report; struct hid_report *report;
list_for_each_entry(report, list_for_each_entry(report,
&hid->report_enum[HID_INPUT_REPORT].report_list, list) &hid->report_enum[HID_INPUT_REPORT].report_list,
list)
gb_hid_init_report(ghid, report); gb_hid_init_report(ghid, report);
list_for_each_entry(report, list_for_each_entry(report,
&hid->report_enum[HID_FEATURE_REPORT].report_list, list) &hid->report_enum[HID_FEATURE_REPORT].report_list,
list)
gb_hid_init_report(ghid, report); gb_hid_init_report(ghid, report);
} }
......
...@@ -260,7 +260,8 @@ static int gb_i2c_probe(struct gbphy_device *gbphy_dev, ...@@ -260,7 +260,8 @@ static int gb_i2c_probe(struct gbphy_device *gbphy_dev,
if (!gb_i2c_dev) if (!gb_i2c_dev)
return -ENOMEM; return -ENOMEM;
connection = gb_connection_create(gbphy_dev->bundle, connection =
gb_connection_create(gbphy_dev->bundle,
le16_to_cpu(gbphy_dev->cport_desc->id), le16_to_cpu(gbphy_dev->cport_desc->id),
NULL); NULL);
if (IS_ERR(connection)) { if (IS_ERR(connection)) {
......
...@@ -9,7 +9,6 @@ ...@@ -9,7 +9,6 @@
#include "greybus.h" #include "greybus.h"
#include "greybus_trace.h" #include "greybus_trace.h"
static ssize_t eject_store(struct device *dev, static ssize_t eject_store(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr,
const char *buf, size_t len) const char *buf, size_t len)
......
...@@ -307,7 +307,8 @@ static void gb_operation_timeout(struct timer_list *t) ...@@ -307,7 +307,8 @@ static void gb_operation_timeout(struct timer_list *t)
} }
static void gb_operation_message_init(struct gb_host_device *hd, static void gb_operation_message_init(struct gb_host_device *hd,
struct gb_message *message, u16 operation_id, struct gb_message *message,
u16 operation_id,
size_t payload_size, u8 type) size_t payload_size, u8 type)
{ {
struct gb_operation_msg_hdr *header; struct gb_operation_msg_hdr *header;
...@@ -614,6 +615,7 @@ gb_operation_create_core(struct gb_connection *connection, ...@@ -614,6 +615,7 @@ gb_operation_create_core(struct gb_connection *connection,
return operation; return operation;
} }
/* Do not export this function. */ /* Do not export this function. */
size_t gb_operation_get_payload_size_max(struct gb_connection *connection) size_t gb_operation_get_payload_size_max(struct gb_connection *connection)
...@@ -1187,7 +1189,8 @@ EXPORT_SYMBOL_GPL(gb_operation_sync_timeout); ...@@ -1187,7 +1189,8 @@ EXPORT_SYMBOL_GPL(gb_operation_sync_timeout);
* the request as actually reached the remote end of the connection. * the request as actually reached the remote end of the connection.
*/ */
int gb_operation_unidirectional_timeout(struct gb_connection *connection, int gb_operation_unidirectional_timeout(struct gb_connection *connection,
int type, void *request, int request_size, int type, void *request,
int request_size,
unsigned int timeout) unsigned int timeout)
{ {
struct gb_operation *operation; struct gb_operation *operation;
...@@ -1222,12 +1225,14 @@ EXPORT_SYMBOL_GPL(gb_operation_unidirectional_timeout); ...@@ -1222,12 +1225,14 @@ EXPORT_SYMBOL_GPL(gb_operation_unidirectional_timeout);
int __init gb_operation_init(void) int __init gb_operation_init(void)
{ {
gb_message_cache = kmem_cache_create("gb_message_cache", gb_message_cache = kmem_cache_create("gb_message_cache",
sizeof(struct gb_message), 0, 0, NULL); sizeof(struct gb_message), 0, 0,
NULL);
if (!gb_message_cache) if (!gb_message_cache)
return -ENOMEM; return -ENOMEM;
gb_operation_cache = kmem_cache_create("gb_operation_cache", gb_operation_cache = kmem_cache_create("gb_operation_cache",
sizeof(struct gb_operation), 0, 0, NULL); sizeof(struct gb_operation), 0,
0, NULL);
if (!gb_operation_cache) if (!gb_operation_cache)
goto err_destroy_message_cache; goto err_destroy_message_cache;
......
...@@ -20,7 +20,6 @@ struct gb_svc_deferred_request { ...@@ -20,7 +20,6 @@ struct gb_svc_deferred_request {
struct gb_operation *operation; struct gb_operation *operation;
}; };
static int gb_svc_queue_deferred_request(struct gb_operation *operation); static int gb_svc_queue_deferred_request(struct gb_operation *operation);
static ssize_t endo_id_show(struct device *dev, static ssize_t endo_id_show(struct device *dev,
......
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