Commit 5f50a34a authored by David Kershner's avatar David Kershner Committed by Greg Kroah-Hartman

staging: unisys: visorbus: clean up formatting of function definitions

Consolidate function parameters onto the same line if they can fit.
Signed-off-by: default avatarDavid Kershner <david.kershner@unisys.com>
Reviewed-by: default avatarTim Sell <timothy.sell@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1c218004
...@@ -69,12 +69,9 @@ static LIST_HEAD(list_all_device_instances); ...@@ -69,12 +69,9 @@ static LIST_HEAD(list_all_device_instances);
* Note that <logCtx> is only needed for callers in the EFI environment, and * Note that <logCtx> is only needed for callers in the EFI environment, and
* is used to pass the EFI_DIAG_CAPTURE_PROTOCOL needed to log messages. * is used to pass the EFI_DIAG_CAPTURE_PROTOCOL needed to log messages.
*/ */
int visor_check_channel(struct channel_header *ch, int visor_check_channel(struct channel_header *ch, struct device *dev,
struct device *dev, const guid_t *expected_guid, char *chname,
const guid_t *expected_guid, u64 expected_min_bytes, u32 expected_version,
char *chname,
u64 expected_min_bytes,
u32 expected_version,
u64 expected_signature) u64 expected_signature)
{ {
if (!guid_is_null(expected_guid)) { if (!guid_is_null(expected_guid)) {
...@@ -293,8 +290,7 @@ ATTRIBUTE_GROUPS(channel); ...@@ -293,8 +290,7 @@ ATTRIBUTE_GROUPS(channel);
*/ */
static ssize_t partition_handle_show(struct device *dev, static ssize_t partition_handle_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr, char *buf)
char *buf)
{ {
struct visor_device *vdev = to_visor_device(dev); struct visor_device *vdev = to_visor_device(dev);
u64 handle = visorchannel_get_clientpartition(vdev->visorchannel); u64 handle = visorchannel_get_clientpartition(vdev->visorchannel);
...@@ -304,8 +300,7 @@ static ssize_t partition_handle_show(struct device *dev, ...@@ -304,8 +300,7 @@ static ssize_t partition_handle_show(struct device *dev,
static DEVICE_ATTR_RO(partition_handle); static DEVICE_ATTR_RO(partition_handle);
static ssize_t partition_guid_show(struct device *dev, static ssize_t partition_guid_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr, char *buf)
char *buf)
{ {
struct visor_device *vdev = to_visor_device(dev); struct visor_device *vdev = to_visor_device(dev);
...@@ -314,8 +309,7 @@ static ssize_t partition_guid_show(struct device *dev, ...@@ -314,8 +309,7 @@ static ssize_t partition_guid_show(struct device *dev,
static DEVICE_ATTR_RO(partition_guid); static DEVICE_ATTR_RO(partition_guid);
static ssize_t partition_name_show(struct device *dev, static ssize_t partition_name_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr, char *buf)
char *buf)
{ {
struct visor_device *vdev = to_visor_device(dev); struct visor_device *vdev = to_visor_device(dev);
...@@ -324,8 +318,7 @@ static ssize_t partition_name_show(struct device *dev, ...@@ -324,8 +318,7 @@ static ssize_t partition_name_show(struct device *dev,
static DEVICE_ATTR_RO(partition_name); static DEVICE_ATTR_RO(partition_name);
static ssize_t channel_addr_show(struct device *dev, static ssize_t channel_addr_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr, char *buf)
char *buf)
{ {
struct visor_device *vdev = to_visor_device(dev); struct visor_device *vdev = to_visor_device(dev);
u64 addr = visorchannel_get_physaddr(vdev->visorchannel); u64 addr = visorchannel_get_physaddr(vdev->visorchannel);
...@@ -335,8 +328,7 @@ static ssize_t channel_addr_show(struct device *dev, ...@@ -335,8 +328,7 @@ static ssize_t channel_addr_show(struct device *dev,
static DEVICE_ATTR_RO(channel_addr); static DEVICE_ATTR_RO(channel_addr);
static ssize_t channel_bytes_show(struct device *dev, static ssize_t channel_bytes_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr, char *buf)
char *buf)
{ {
struct visor_device *vdev = to_visor_device(dev); struct visor_device *vdev = to_visor_device(dev);
u64 nbytes = visorchannel_get_nbytes(vdev->visorchannel); u64 nbytes = visorchannel_get_nbytes(vdev->visorchannel);
...@@ -346,8 +338,7 @@ static ssize_t channel_bytes_show(struct device *dev, ...@@ -346,8 +338,7 @@ static ssize_t channel_bytes_show(struct device *dev,
static DEVICE_ATTR_RO(channel_bytes); static DEVICE_ATTR_RO(channel_bytes);
static ssize_t channel_id_show(struct device *dev, static ssize_t channel_id_show(struct device *dev,
struct device_attribute *attr, struct device_attribute *attr, char *buf)
char *buf)
{ {
struct visor_device *vdev = to_visor_device(dev); struct visor_device *vdev = to_visor_device(dev);
int len = 0; int len = 0;
......
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