[PATCH 08/45] staging: unisys: visorbus: visorbus_main.c: cleanup and consolidate comments

2017-09-27 Thread David Kershner
Use all 80 characters of the line for comments to help reduce the number of extra lines in the code. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 44 +++-- 1 file changed, 19 insertions(+), 25 deletions(-) diff

[PATCH 02/45] staging: unisys: visorbus: don't need local variable cmd

2017-09-27 Thread David Kershner
The local variable cmd was just being used to dereference a field inside of it. Get rid of the variable and just derefernce the parameter being passed in. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 3 +-- 1 file changed, 1 insertion

[PATCH 13/45] staging: unisys; visorbus: visorbus_main.c: remove extraneous newline

2017-09-27 Thread David Kershner
Use all 80 characters when calling functions. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers

[PATCH 04/45] staging: unisys: visorbus: visorchannel: use 80 characters for comments

2017-09-27 Thread David Kershner
In the file visorhcannel.c use all 80 characters for comments instead of shortening them. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchannel.c | 35 +- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a

[PATCH 17/45] staging: unisys: visorbus: clean up formatting of function definitions

2017-09-27 Thread David Kershner
Consolidate function parameters onto the same line if they can fit. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 27 + 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/drivers/staging/unisys

[PATCH 05/45] staging: unisys; visorbus: visorchipset.c: remove extraneous newline

2017-09-27 Thread David Kershner
Use all 80 characters when calling functions. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 31 ++ 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorchipset.c

[PATCH 01/45] staging: unisys: visorbus: simplify commenting in controlvm_init

2017-09-27 Thread David Kershner
During the process of udpating the features bits, put a block comment for all updates instead of a separate comment for each one. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions

[PATCH 15/45] staging: unisys: visorbus: keep the success path on the left

2017-09-27 Thread David Kershner
The code was indenting for the successful path and then combining the error and success path for the rest of the function. Correct it so the success path is not indented. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 16

[PATCH 19/45] staging: unisys: visorbus: Remove unneeded initialization

2017-09-27 Thread David Kershner
No need to set drv to NULL. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus

[PATCH 10/45] staging: unisys: visorbus: don't put code in declaration.

2017-09-27 Thread David Kershner
Simplify the code by not putting the assignment in the declaration. Define it and then assign it, so the function doesn't get bunched up on the right. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 14 ++ 1 file chang

[PATCH 03/45] staging: unisys: visorbus: clean up parser_string_get function

2017-09-27 Thread David Kershner
The function parser_string_get was writing its own strnlen function, use the kernel version instead. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 24 1 file changed, 4 insertions(+), 20 deletions(-) diff

[PATCH 07/45] staging: unisys: visorbus: visorbus_private.h remove extra blank lines

2017-09-27 Thread David Kershner
Remvoe several unneeded blank lines. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_private.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_private.h b/drivers/staging/unisys/visorbus

[PATCH 12/45] staging: unisys: fix up device_destroy

2017-09-27 Thread David Kershner
visor_device is not referenced after the unregister. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging

[PATCH 11/45] staging: unisys: visorbus: NULL pending_msg_hdr not an error

2017-09-27 Thread David Kershner
A NULL pending_msg_hdr is not an error, it just means that the firmware does not want an error response for that message. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 3 ++- drivers/staging/unisys/visorbus/visorchipset.c | 13

[PATCH 23/45] staging: unisys: visorbus: to_visor_device/to_visor_driver move up

2017-09-27 Thread David Kershner
The macros to_visor_device and to_visor_driver are fairly small; move them up to the declaration block to save some space. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 14 -- 1 file changed, 4 insertions(+), 10 deletions

[PATCH 20/45] staging: unisys: visorbus: fix newlines for visorchannel

2017-09-27 Thread David Kershner
Remove extraneous blank lines and add some lines that are needed. General philosophy -- declaration, space, pre-conditions (if needed), space, then rest of function. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchannel.c | 28

[PATCH 00/45] staging: unisys: more updates to clean up the code.

2017-09-27 Thread David Kershner
Here are some more updates to clean up the code. David Binder (3): staging: unisys: include: Rename channel.h to visorchannel.h staging: unisys: include: Remove unnecessary macro to generate signature staging: unisys: include: Remove unused enum David Kershner (37): staging: unisys

[PATCH 22/45] staging: unisys: visorbus: visorbus_main.c: remove blank lines

2017-09-27 Thread David Kershner
Removes several extraneous blank lines in visorbus_main.c. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 44 ++--- 1 file changed, 3 insertions(+), 41 deletions(-) diff --git a/drivers/staging/unisys/visorbus

[PATCH 09/45] staging: unisys: visorbus: use guid_is_equal instead of memcmp

2017-09-27 Thread David Kershner
The function publish_vbus_dev_info was doing a memcmp of guids. It should be using the kernel provided guid_equal function instead. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions

[PATCH 18/45] staging: unisys: visorbus: simplify debugfs print statment

2017-09-27 Thread David Kershner
Simplify debugfs statement so it is clearer and more compact. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers

[PATCH 16/45] staging: unisys: shrink the name of a variable

2017-09-27 Thread David Kershner
The field debugfs_client_bus_info can be reduced to debugfs_bus_info. The word client is extraneous in this context. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/visorbus.h | 2 +- drivers/staging/unisys/visorbus/visorbus_main.c | 20

[PATCH 06/45] staging: unisys: visorbus: fix alignment of paranethesis

2017-09-27 Thread David Kershner
Correct indenting of parameters when calling the functions in the file visorchipset.c. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/staging/unisys

[PATCH 21/45] staging: unisys: visorbus: visorchipset: clean up blank lines in visorchipset

2017-09-27 Thread David Kershner
Remove extraneous blank lines and get consistency of blank lines. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 98 +- 1 file changed, 3 insertions(+), 95 deletions(-) diff --git a/drivers/staging/unisys

[PATCH 26/45] staging: unisys: visorbus: vbuschannel doesn't use ctypes

2017-09-27 Thread David Kershner
Don't include ctypes in vbuschannel.h, it isn't used by ctypes, but it is used by visorbus_main.c so include it there. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/controlvmchannel.h | 1 + drivers/staging/unisys/visorbus/vbuschannel.

[PATCH 14/45] staging: unisys: visorbus: clean up initializations

2017-09-27 Thread David Kershner
Don't compute value of offset during initialization. Assigning a value to offset should happen after we have verified all of its components. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 14 +++--- 1 file changed, 7 inser

[PATCH 30/45] staging: unisys: visorbus: keep the success path on the left side

2017-09-27 Thread David Kershner
If you can't find the dev, it is an error. Indent for the error, instead of the success. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/u

[PATCH 28/45] staging: unisys: include: remove signature_32

2017-09-27 Thread David Kershner
Remove signature_32 since it was only being referenced in one location. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/channel.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/staging/unisys/include/channel.h b/drivers

[PATCH 29/45] staging: unisys: include: consolidate a comment

2017-09-27 Thread David Kershner
Use all 80 characters of the line to consolidate a comment. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/iochannel.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/staging/unisys/include/iochannel.h b/drivers

[PATCH 27/45] staging: unisys: include: reorder to avoid forward declaration

2017-09-27 Thread David Kershner
The include file visorbus.h has a forward declaration of visor_device. A simple reorder of the file removed the need for the forward declaration. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/visorbus.h | 125 +++--- 1 file

[PATCH 25/45] staging: unisys: include: remove io.h from channel.h

2017-09-27 Thread David Kershner
Channel.h was including io.h and not using it. Remove the #include. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/channel.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/unisys/include/channel.h b/drivers/staging/unisys/include

[PATCH 24/45] staging: unisys: only include a file where it is used.

2017-09-27 Thread David Kershner
The header file visorbus.h included several linux headers that were used by the source files that include it. Move the includes to the files that actually use them. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/visorbus.h | 2 -- drivers/staging

[PATCH 31/45] staging: unisys: remove visorbus_type extern

2017-09-27 Thread David Kershner
The variable visorbus_type could be contained to the visorbus_main.c file by moving the two functions that referenced it visorchipset.c. This allowed us to remove the incorrect extern from the include file visorbus.h. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging

[PATCH 37/45] staging: unisys: include: Remove unused enum

2017-09-27 Thread David Kershner
From: David Binder Removes unused enum that pertains to s-Par diagnostics capabilities. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/visorbus.h | 20 1 file changed, 20 deletions(-) diff --git a

[PATCH 39/45] staging: unisys: visorbus: simplify visorchannel_create_guts

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar Removing the two wrapper functions dealing with visorchannel_create() and instead just always use a new version of visorchannel_create() with an additional parameter. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers

[PATCH 36/45] staging: unisys: include: Remove unnecessary macro to generate signature

2017-09-27 Thread David Kershner
From: David Binder Removes unnecessary SIGNATURE_16 macro used to generate a simple 32-bit signature. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/visorchannel.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions

[PATCH 35/45] staging: unisys: include: Rename channel.h to visorchannel.h

2017-09-27 Thread David Kershner
From: David Binder In order to avoid a potential conflict with other drivers that define a channel.h file, the s-Par channel.h file is renamed in accordance with the surrounding driver-set namespace. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers

[PATCH 34/45] staging: unisys: visorbus: clean up parameter formatting

2017-09-27 Thread David Kershner
Cleans up parameter formatting in visorbus. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- drivers/staging/unisys/visorbus/visorchipset.c | 17 - 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a

[PATCH 33/45] staging: unisys: visorbus: shrink name of POLLJIFFIES_CONTROLVMCHANNEL_XXX

2017-09-27 Thread David Kershner
Shrinks the name of POLLJIFFIES_CONTORLVMCHANNEL_FAST and POLLJIFFIES_CONTROLVMCHANNEL_SLOW to just POLLJIFFIES_CONTROLVM_. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 20 1 file changed, 8 insertions(+), 12

[PATCH 32/45] staging: unisys: visorbus: visorchipset.c: Remove useless initializations

2017-09-27 Thread David Kershner
Found several more useless initializations in visorchipset.c get rid of them. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/unisys

[PATCH 40/45] staging: unisys: visorbus: fix line over 80 characters checkpatch warning

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar This patch fixes two checkpatch issues of line over 80 characters in visorchipset.c. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 6 -- 1 file changed, 4 insertions(+), 2

[PATCH 42/45] staging: unisys: visorbus: fix comments in vbuschannel.h

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar This patch fixes some comments in the file vbuschannel.h to make it more uniform. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/vbuschannel.h | 9 - 1 file changed, 4 insertions(+), 5

[PATCH 44/45] staging: unisys: visorhba: clean up parenthesis

2017-09-27 Thread David Kershner
Clean up unneeded parenthesis reported by checkpatch.pl. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorhba/visorhba_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/unisys/visorhba/visorhba_main.c b

[PATCH 38/45] staging: unisys: check the whole channel instead of just guid for match

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar Validate that the channel contents match the channel type that we are matching. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 11 ++- drivers/staging/unisys/visorhba

[PATCH 41/45] staging: unisys: include: fix comments and spacing issues in visorbus.h

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar This patch fixes some comments and spacings in the file visorbus.h to make it more uniform. Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/visorbus.h | 12 +--- 1 file changed, 5

[PATCH 43/45] staging: unisys: visorbus: Fix extraneous parenthesis

2017-09-27 Thread David Kershner
Clean up unneeded () that are being reported by checkpatch. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 4 ++-- drivers/staging/unisys/visorbus/visorchipset.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH 45/45] staging: unisys: visornic: clean up parenthesis

2017-09-27 Thread David Kershner
Clean up unneeded parenthesis reported by checkpatch.pl. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visornic/visornic_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers

[PATCH 1/2] staging: unisys: visorbus: address theoretical int overflows

2017-11-17 Thread David Kershner
ned long)i+1; printf("adding 1 WITHcast = %lun", il); } [selltc@mac tmp]$ gcc x.c -o x.out [selltc@mac tmp]$ ./x.out sizeof(int) =4 sizeof(long)=8 i = 4294967295 adding 1 withOUT cast = 0 adding 1 WITHcast = 4294967296 Signed-off-by: Tim Sell Reported-

[PATCH 0/2] drivers: Move visorbus from staging to drivers/visorbus

2017-11-17 Thread David Kershner
this state. David Kershner (1): drivers: visorbus: move driver out of staging Tim Sell (1): staging: unisys: visorbus: address theoretical int overflows MAINTAINERS | 2 ++ drivers/Kconfig

[PATCH 2/2] drivers: visorbus: move driver out of staging

2017-11-17 Thread David Kershner
over to drives/visorbus/Kconfig to make sure dependencies were met. Visorbus will now just live in the /drivers directory. Signed-off-by: David Kershner Reviewed-by: David Binder Reviewed-by: Tim Sell --- MAINTAINERS | 2 ++ drivers

[PATCH 0/4] staging: unisys: fix dependency and include issues

2017-12-06 Thread David Kershner
This patch series combines the global include files into a single include and cleans up dependencies that were in the wrong location. We had code dependencies on the UNISYSSPAR Kconfig flag instead of the VISORBUS config flag. UNISYSSPAR is just there for organizational purposes. David Kershner

[PATCH 4/4] staging: unisys: move dependencies from UNISYSSPAR to VISORBUS

2017-12-06 Thread David Kershner
The Kconfig flag UNISYSSPAR depended on ACPI and X86, these dependencies really belong to visorbus, so move them there. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/Kconfig | 2 -- drivers/staging/unisys/visorbus/Kconfig | 1 + 2 files changed, 1

[PATCH 1/4] staging: unisys: fix dependencies with UNISYSSPAR Kconfig flag

2017-12-06 Thread David Kershner
The Kconfig file for UNISYSSPAR uses select ACPI and select PCI instead of depends on ACPI. This patch fixes the problem. Reported-by: Greg Kroah-Hartman Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions

[PATCH 2/4] staging: unisys: remove !UML flag

2017-12-06 Thread David Kershner
Remove the dependency that the drivers are not built during UML. Reported-by: Greg Kroah-Hartman Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/unisys/Kconfig b/drivers

[PATCH 3/4] staging: unisys: combine visorchannel.h and visorbus.h

2017-12-06 Thread David Kershner
Combine the include files visorchannel.h and visorbus.h so that only one include file is needed for the .c files. Reported-by: Christoph Hellwig Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/iochannel.h | 2 +- drivers/staging/unisys/include

[PATCH v2] drivers: visorbus: move driver out of staging

2017-12-07 Thread David Kershner
-by: David Kershner Reviewed-by: Tim Sell --- The files are based off the latest revision in the staging-next tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git Changes from v1: -- Simplified to one single patch -- Combined include files into a single file

[PATCH 01/12] staging: unisys: visorbus: Move kernel-doc comment to proper location

2017-02-21 Thread David Kershner
From: David Binder Moves kernel-doc comment in front of the function it describes. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchannel.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions

[PATCH 00/12] staging: unisys: remove platform device and use acpi device.

2017-02-21 Thread David Kershner
The visorchipset device is not really a platform device but an acpi device. This patch series removes the creation of the platform device and uses the acpi device as needed. This series also cleans up some misused kernel-doc comments. David Binder (9): staging: unisys: visorbus: Move kernel-doc

[PATCH 08/12] staging: unisys: visornic: visornic_main.c: Remove kernel-doc comments

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comments that precede static functions. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visornic/visornic_main.c | 70 +- 1 file changed, 35 insertions(+), 35

[PATCH 03/12] staging: unisys: visorhba: Make miscellaneous comment corrections

2017-02-21 Thread David Kershner
From: David Binder Fixes miscellaneous comment issues in visorhba_main.c. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorhba/visorhba_main.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 04/12] staging: unisys: visorbus: visorchannel.c: Remove kernel-doc comment

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comment that precedes a static function. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 02/12] staging: unisys: visorbus: Fix spelling mistake

2017-02-21 Thread David Kershner
From: David Binder Fixes a minor spelling mistake in a function comment. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 06/12] staging: unisys: visorbus: visorchipset.c: Remove kernel-doc comments

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comments that precede static functions. Reported-by: Greg Kroah-Hartman Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 24 +-- 1 file

[PATCH 09/12] staging: unisys: visorhba: visorhba_main.c: Remove kernel-doc comments

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comments that precede static functions. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorhba/visorhba_main.c | 64 +- 1 file changed, 32 insertions(+), 32

[PATCH 12/12] staging: unisys: visorbus: remove visorchipset_platform_device

2017-02-21 Thread David Kershner
From: Sameer Wadgaonkar Removed visorchipset_platform_device and all the unused structures and functions and using chipset_dev.acpi_device instead. Reported-by: Greg Kroah-Hartman Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging

[PATCH 10/12] staging: unisys: visorbus: added struct visorchipset_device

2017-02-21 Thread David Kershner
From: Sameer Wadgaonkar Added the structure visorchipset_device and moved the globals to the struct. The visorchipset_init() function saves acpi_device within this structure. Reported-by: Greg Kroah-Hartman Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell

[PATCH 07/12] staging: unisys: visorbus: vbuschannel.h: Remove kernel-doc comment

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comment that precedes a static function. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/vbuschannel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 05/12] staging: unisys: visorbus: visorbus_main.c: Remove kernel-doc comments

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comments that precede static functions. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 36 +- 1 file changed, 18 insertions(+), 18

[PATCH 11/12] staging: unisys: visorbus: remove character device interface

2017-02-21 Thread David Kershner
From: Sameer Wadgaonkar Removed the character device interface from visorchipset and removed the major and minor numbers. Reported-by: Greg Kroah-Hartman Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c

[PATCH 00/36] staging: unisys: additional code cleanups

2017-03-17 Thread David Kershner
: unisys: visorhba: visorhba_main.c: Fix #define formatting staging: unisys: include: iochannel.h: Fix #define formatting staging: unisys: include: visorbus.h: Fix #define formatting staging: unisys: include: channel.h: Fix #define formatting David Kershner (1): staging: unisys: include

[PATCH 01/36] staging: unisys: include: replaced COVERQ with DIV_ROUND_UP

2017-03-17 Thread David Kershner
From: Alexander Curtin COVERQ is functionally equivalent to DIV_ROUND_UP and was only used to define the COVER macro. Signed-off-by: Alexander Curtin Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/channel.h | 5 + 1 file changed, 1 insertion(+), 4

[PATCH 06/36] staging: unisys: visorbus: remove unused functions in visorchipset

2017-03-17 Thread David Kershner
From: Sameer Wadgaonkar Removed unused functions issue_vmcall_update_physical_time() and issue_vmcall_query_guest_virtual_time_offset() from visorchipset.c Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c

[PATCH 08/36] staging: unisys: visorbus: remove inline keyword from visorchipset

2017-03-17 Thread David Kershner
From: Sameer Wadgaonkar Removed inline keyword from the functions in visorchipset: * issue_vmcall_io_controlvm_addr() Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 2 +- 1 file changed, 1 insertion

[PATCH 04/36] staging: unisys: include: remove unused function spar_check_channel_server

2017-03-17 Thread David Kershner
From: Sameer Wadgaonkar Removed unused function spar_check_channel_server from channel.h Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/channel.h | 19 --- 1 file changed, 19 deletions(-) diff --git a

[PATCH 17/36] staging: unisys: visorinput: Remove unnecessary usage of local variable

2017-03-17 Thread David Kershner
From: David Binder Remove local variable on stack by directly returning the value in the array. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorinput/visorinput.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions

[PATCH 02/36] staging: unisys: visorbus_main: removed revference to virtpci

2017-03-17 Thread David Kershner
From: Alexander Curtin The comment referencing virtpci was irrelevant. Signed-off-by: Alexander Curtin Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 4 1 file changed, 4 deletions(-) diff --git a/drivers/staging/unisys

[PATCH 07/36] staging: unisys: visorhba: remove inline keyword

2017-03-17 Thread David Kershner
From: Sameer Wadgaonkar Removed inline keyword from the function complete_taskmgmt_command in visorhba_main.c Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorhba/visorhba_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 05/36] staging: unisys: include: remove unused macro spar_signal_init

2017-03-17 Thread David Kershner
From: Sameer Wadgaonkar Removed unused macro spar_signal_init from channel.h Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/channel.h | 14 -- 1 file changed, 14 deletions(-) diff --git a/drivers/staging

[PATCH 09/36] staging: unisys: visorbus: remove inline keyword in visorchannel.c

2017-03-17 Thread David Kershner
From: Sameer Wadgaonkar Removed inline keyword from functions sig_read_data and sig_write_data in visorchannel.c Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchannel.c | 4 ++-- 1 file changed, 2 insertions

[PATCH 10/36] staging: unisys: include: Wrap macro argument in parenthesis

2017-03-17 Thread David Kershner
From: David Binder Addresses checkpatch check by wrapping macro argument in parenthesis. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/channel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH 20/36] staging: unisys: visorbus: Remove pointer cast that causes sparse warning

2017-03-17 Thread David Kershner
From: David Binder Removes unnecessary cast of to __iomem of a non-io-mapped pointer, thereby eliminating the following sparse warning: visorchannel.c:159:17: warning: cast adds address space to expression () Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell

[PATCH 18/36] staging: unisys: include: Add function definition argument identifier

2017-03-17 Thread David Kershner
also have an identifier name Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/visorbus.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/include/visorbus.h b/drivers/st

[PATCH 22/36] staging: unisys: include: removed unused function declarations

2017-03-17 Thread David Kershner
From: Jon Frisch This patch removes the unused function declarations in channel.h. Signed-off-by: Jon Frisch Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/channel.h | 80 +- 1 file changed, 80 deletions(-) diff --git a

[PATCH 26/36] staging: unisys: visorbus: visorchannel.c: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/visorchannel.c | 13 +++-- 1 file

[PATCH 16/36] staging: unisys: visorbus: Rename what vmcallinterface.h #define

2017-03-17 Thread David Kershner
From: David Binder Renames __IOMONINTF_H__ to __VMCALLINTERFACE_H__, which more closely reflects the naming conventions of the code. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/vmcallinterface.h | 6 +++--- 1 file

[PATCH 27/36] staging: unisys: visorbus: visorbus_main.c: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1

[PATCH 12/36] staging: unisys: visorbus: Remove useless checks in visorbus_main.c

2017-03-17 Thread David Kershner
From: David Binder Removes checks that all visor_device instances have an associated visorchannel. Due to the design of the s-Par drivers these checks are unnecessary. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus

[PATCH 29/36] staging: unisys: visorbus: visorchipset.c: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/visorchipset.c | 2 +- 1 file changed, 1

[PATCH 28/36] staging: unisys: visorbus: controlvmchannel.h: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/controlvmchannel.h | 134 +++--- 1 file

[PATCH 19/36] staging: unisys: include: simplify spar_check_channel_client

2017-03-17 Thread David Kershner
The function spar_check_channel_client shouldn't need to do readq's, it is referencing a local copy of the channel header. Simplify it to just access the fields directly. Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/chan

[PATCH 13/36] staging: unisys: visorbus: Rename #define VMCALL_IO_CONTROLVM_ADDR

2017-03-17 Thread David Kershner
From: David Binder Rename #define VMCALL_IO_CONTROLVM_ADDR to VMCALL_CONTROLVM_ADDR, as this vmcall can be used by any partition, not just the IO partition. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c

[PATCH 25/36] staging: unisys: visorbus: remove #pragma directive

2017-03-17 Thread David Kershner
From: Jon Frisch This patch removes the #pragma directive from visorchannel.h and adds the __packed keyword to all structs to suppress structure padding. Signed-off-by: Jon Frisch Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/vbuschannel.h | 10

[PATCH 33/36] staging: unisys: visorhba: visorhba_main.c: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorhba/visorhba_main.c | 12 ++-- 1 file

[PATCH 24/36] staging: unisys: visornic: remove inline functions

2017-03-17 Thread David Kershner
From: Jon Frisch This patch removes inline functions in visornic_main.c. Signed-off-by: Jon Frisch Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visornic/visornic_main.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers

[PATCH 21/36] staging: unisys: include: remove macro lengthof

2017-03-17 Thread David Kershner
From: Jon Frisch This patch removes the unused macro lengthof. Signed-off-by: Jon Frisch Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/channel.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/unisys/include/channel.h b/drivers

[PATCH 34/36] staging: unisys: include: iochannel.h: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/include/iochannel.h | 24 +++ 1 file

[PATCH 31/36] staging: unisys: visorbus: vmcallinterface.h: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/vmcallinterface.h | 26 1 file

[PATCH 35/36] staging: unisys: include: visorbus.h: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/include/visorbus.h | 2 +- 1 file changed, 1 insertion

[PATCH 32/36] staging: unisys: visorinput: visorinput.c: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorinput/visorinput.c | 12 ++-- 1 file changed

[PATCH 30/36] staging: unisys: visorbus: vbuschannel.h: Fix #define formatting

2017-03-17 Thread David Kershner
Sell The amount of whitespace used between the and the is dependent on what is needed to make the surrounding #define directives as uniform as possible. Signed-off-by: David Binder Signed-off-by: David Kershner --- drivers/staging/unisys/visorbus/vbuschannel.h | 18 +- 1 file

[PATCH 15/36] staging: unisys: visornic: Move function to appropriate location

2017-03-17 Thread David Kershner
From: David Binder Move function add_physinfo_entries() to visornic_main.c, which is the only function where it is used. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/include/iochannel.h | 37 +-- drivers

  1   2   3   4   5   6   7   8   9   10   >