staging: gasket: sysfs: fix function param line continuation style

Fix multi-line alignment formatting to look like:
      int ret = long_function_name(device, VARIABLE1, VARIABLE2,
                                   VARIABLE3, VARIABLE4);

Signed-off-by: Todd Poynor <toddpoynor@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Todd Poynor 2018-07-31 13:24:42 -07:00 committed by Greg Kroah-Hartman
parent e8c7f19981
commit 46b77a6b69
2 changed files with 29 additions and 29 deletions

View file

@ -145,8 +145,8 @@ void gasket_sysfs_init(void)
} }
} }
int gasket_sysfs_create_mapping( int gasket_sysfs_create_mapping(struct device *device,
struct device *device, struct gasket_dev *gasket_dev) struct gasket_dev *gasket_dev)
{ {
struct gasket_sysfs_mapping *mapping; struct gasket_sysfs_mapping *mapping;
int map_idx = -1; int map_idx = -1;
@ -210,8 +210,8 @@ int gasket_sysfs_create_mapping(
return 0; return 0;
} }
int gasket_sysfs_create_entries( int gasket_sysfs_create_entries(struct device *device,
struct device *device, const struct gasket_sysfs_attribute *attrs) const struct gasket_sysfs_attribute *attrs)
{ {
int i; int i;
int ret; int ret;
@ -293,8 +293,8 @@ void gasket_sysfs_put_device_data(struct device *device, struct gasket_dev *dev)
} }
EXPORT_SYMBOL(gasket_sysfs_put_device_data); EXPORT_SYMBOL(gasket_sysfs_put_device_data);
struct gasket_sysfs_attribute *gasket_sysfs_get_attr( struct gasket_sysfs_attribute *
struct device *device, struct device_attribute *attr) gasket_sysfs_get_attr(struct device *device, struct device_attribute *attr)
{ {
int i; int i;
int num_attrs; int num_attrs;
@ -317,8 +317,8 @@ struct gasket_sysfs_attribute *gasket_sysfs_get_attr(
} }
EXPORT_SYMBOL(gasket_sysfs_get_attr); EXPORT_SYMBOL(gasket_sysfs_get_attr);
void gasket_sysfs_put_attr( void gasket_sysfs_put_attr(struct device *device,
struct device *device, struct gasket_sysfs_attribute *attr) struct gasket_sysfs_attribute *attr)
{ {
int i; int i;
int num_attrs; int num_attrs;
@ -342,9 +342,9 @@ void gasket_sysfs_put_attr(
} }
EXPORT_SYMBOL(gasket_sysfs_put_attr); EXPORT_SYMBOL(gasket_sysfs_put_attr);
ssize_t gasket_sysfs_register_store( ssize_t gasket_sysfs_register_store(struct device *device,
struct device *device, struct device_attribute *attr, const char *buf, struct device_attribute *attr,
size_t count) const char *buf, size_t count)
{ {
ulong parsed_value = 0; ulong parsed_value = 0;
struct gasket_sysfs_mapping *mapping; struct gasket_sysfs_mapping *mapping;
@ -386,8 +386,8 @@ ssize_t gasket_sysfs_register_store(
gasket_attr->data.bar_address.offset); gasket_attr->data.bar_address.offset);
if (gasket_attr->write_callback) if (gasket_attr->write_callback)
gasket_attr->write_callback( gasket_attr->write_callback(gasket_dev, gasket_attr,
gasket_dev, gasket_attr, parsed_value); parsed_value);
gasket_sysfs_put_attr(device, gasket_attr); gasket_sysfs_put_attr(device, gasket_attr);
put_mapping(mapping); put_mapping(mapping);

View file

@ -68,9 +68,9 @@ struct gasket_sysfs_attribute {
* The callback should perform any logging necessary, as errors cannot * The callback should perform any logging necessary, as errors cannot
* be returned from the callback. * be returned from the callback.
*/ */
void (*write_callback)( void (*write_callback)(struct gasket_dev *dev,
struct gasket_dev *dev, struct gasket_sysfs_attribute *attr, struct gasket_sysfs_attribute *attr,
ulong value); ulong value);
}; };
#define GASKET_SYSFS_RO(_name, _show_function, _attr_type) \ #define GASKET_SYSFS_RO(_name, _show_function, _attr_type) \
@ -98,8 +98,8 @@ void gasket_sysfs_init(void);
* If this function is not called before gasket_sysfs_create_entries, a warning * If this function is not called before gasket_sysfs_create_entries, a warning
* will be logged. * will be logged.
*/ */
int gasket_sysfs_create_mapping( int gasket_sysfs_create_mapping(struct device *device,
struct device *device, struct gasket_dev *gasket_dev); struct gasket_dev *gasket_dev);
/* /*
* Creates bulk entries in sysfs. * Creates bulk entries in sysfs.
@ -111,8 +111,8 @@ int gasket_sysfs_create_mapping(
* gasket_sysfs_create_mapping had a legacy device, the entries will be created * gasket_sysfs_create_mapping had a legacy device, the entries will be created
* for it, as well. * for it, as well.
*/ */
int gasket_sysfs_create_entries( int gasket_sysfs_create_entries(struct device *device,
struct device *device, const struct gasket_sysfs_attribute *attrs); const struct gasket_sysfs_attribute *attrs);
/* /*
* Removes a device mapping from the global table. * Removes a device mapping from the global table.
@ -141,8 +141,8 @@ struct gasket_dev *gasket_sysfs_get_device_data(struct device *device);
* @device: Kernel device structure. * @device: Kernel device structure.
* @dev: Gasket device descriptor (returned by gasket_sysfs_get_device_data). * @dev: Gasket device descriptor (returned by gasket_sysfs_get_device_data).
*/ */
void gasket_sysfs_put_device_data( void gasket_sysfs_put_device_data(struct device *device,
struct device *device, struct gasket_dev *gasket_dev); struct gasket_dev *gasket_dev);
/* /*
* Gasket-specific attribute lookup. * Gasket-specific attribute lookup.
@ -155,8 +155,8 @@ void gasket_sysfs_put_device_data(
* gasket_sysfs_get_device_data. While this reference is held, the underlying * gasket_sysfs_get_device_data. While this reference is held, the underlying
* device sysfs information/structure will remain valid/will not be deleted. * device sysfs information/structure will remain valid/will not be deleted.
*/ */
struct gasket_sysfs_attribute *gasket_sysfs_get_attr( struct gasket_sysfs_attribute *
struct device *device, struct device_attribute *attr); gasket_sysfs_get_attr(struct device *device, struct device_attribute *attr);
/* /*
* Releases a references to internal data. * Releases a references to internal data.
@ -164,16 +164,16 @@ struct gasket_sysfs_attribute *gasket_sysfs_get_attr(
* @attr: Gasket sysfs attribute descriptor (returned by * @attr: Gasket sysfs attribute descriptor (returned by
* gasket_sysfs_get_attr). * gasket_sysfs_get_attr).
*/ */
void gasket_sysfs_put_attr( void gasket_sysfs_put_attr(struct device *device,
struct device *device, struct gasket_sysfs_attribute *attr); struct gasket_sysfs_attribute *attr);
/* /*
* Write to a register sysfs node. * Write to a register sysfs node.
* @buf: NULL-terminated data being written. * @buf: NULL-terminated data being written.
* @count: number of bytes in the "buf" argument. * @count: number of bytes in the "buf" argument.
*/ */
ssize_t gasket_sysfs_register_store( ssize_t gasket_sysfs_register_store(struct device *device,
struct device *device, struct device_attribute *attr, const char *buf, struct device_attribute *attr,
size_t count); const char *buf, size_t count);
#endif /* __GASKET_SYSFS_H__ */ #endif /* __GASKET_SYSFS_H__ */