[PATCH 2/6] staging: unisys: visorinput: Clean up Makefile includes

2018-01-31 Thread David Kershner
The driver no longer needs to include drivers/staging/unisys/include, so we can get rid of it. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorinput/Makefile | 1 - 1 file changed, 1 deletion(-)

[PATCH 5/6] staging: unisys: visorinput: Fix spacing after open paranthesis

2018-01-31 Thread David Kershner
Checkpatch was giving errors about an open parenthesis being the last thing on a line. This patch cleans up some names and removes the checkpatch warnings. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/st

[PATCH 0/6] staging: unisys: visorinput: Updates to visorinput

2018-01-31 Thread David Kershner
Miscellaneous patches to the visorinput driver. David Kershner (5): staging: unisys: visorinput: Clean up Makefile includes staging: unisys: visorinput: remove duplicate comments staging: unisys: visorinput: combine ultrainputreport.h with visorinput.c staging: unisys: visorinput: Fix

[PATCH 1/6] staging: unisys: visorinput: remove need for 'depends on FB'

2018-01-31 Thread David Kershner
ed-off-by: Tim Sell <timothy.s...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> --- drivers/staging/unisys/visorinput/Kconfig | 2 +- drivers/staging/unisys/visorinput/visorinput.c | 43 +-- 2 files changed, 32 insertions(+), 13 deleti

[PATCH 3/6] staging: unisys: visorinput: remove duplicate comments

2018-01-31 Thread David Kershner
Comments were based on individual entries, if we group the entries, we can get rid of duplicate comments. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorinput/ultrainputreport.h | 16 +

[PATCH 6/6] staging: unisys: visorinput: use the full 80 characters of the screen

2018-01-31 Thread David Kershner
Several of the comments in the code were not using the full 80 characters of the screen. This patch combines the lines to make full use of the screen. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisy

[PATCH 4/6] staging: unisys: visorinput: combine ultrainputreport.h with visorinput.c

2018-01-31 Thread David Kershner
The file ultrainputreport.h was just being used by visorinput.c. Move the definitions into visorinput.c and get rid of the file. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorinput/ultrainputr

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

2017-12-07 Thread David Kershner
-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- 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

[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 <h...@lst.de> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- driv

[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 <gre...@linuxfoundation.org> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/Kconfig | 2 +-

[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 <gre...@linuxfoundation.org> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/Kconfig | 2 -- dri

[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 <david.kersh...@unisys.com> Reviewed-by: David Binder <david.bin...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com>

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

2017-11-17 Thread David Kershner
to 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 1/2] staging: unisys: visorbus: address theoretical int overflows

2017-11-17 Thread David Kershner
gned-off-by: Tim Sell <timothy.s...@unisys.com> Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: David Binder <david.bin...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 7

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 4 ++-- drivers/staging/unisys/visorbus/visorchipset.c | 4 +

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visornic/visornic_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --g

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

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Validate that the channel contents match the channel type that we are matching. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: T

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

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> This patch fixes some comments and spacings in the file visorbus.h to make it more uniform. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Rev

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorhba/visorhba_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-)

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

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> This patch fixes some comments in the file vbuschannel.h to make it more uniform. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: T

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

2017-09-27 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> This patch fixes two checkpatch issues of line over 80 characters in visorchipset.c. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: T

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- drivers/staging/unisys/visorbus/visorchipset.c | 17 --

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorch

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 16 1 file changed, 8 inse

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

2017-09-27 Thread David Kershner
From: David Binder <david.bin...@unisys.com> Removes unused enum that pertains to s-Par diagnostics capabilities. Signed-off-by: David Binder <david.bin...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com&

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

2017-09-27 Thread David Kershner
; Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_private.h | 4 +--- drivers/staging/unisys/visorbus/visorchannel.c | 23 +- drivers/staging/unisys/visorbus

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

2017-09-27 Thread David Kershner
From: David Binder <david.bin...@unisys.com> Removes unnecessary SIGNATURE_16 macro used to generate a simple 32-bit signature. Signed-off-by: David Binder <david.bin...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <ti

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

2017-09-27 Thread David Kershner
; Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/include/iochannel.h | 2 +- drivers/staging/unisys/include/visorbus.h| 2 +- drivers/staging/unisys/include/{channel.

[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 <david.kersh...@unisys.com> Reviewed-by: Ti

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/un

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- dri

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/include/channel.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/st

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 7 +++ 1 file changed, 3 inse

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/include/channel.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/include/iochannel.h | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --g

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 98 +- 1 file changed, 3 inser

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/controlvmchannel.h |

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --g

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/include/visorbus.h | 2

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/uni

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbu

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 44 ++--- 1 file changed, 3 insertions(+),

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- dri

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 9 - 1 file changed, 4 inse

[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 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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 24

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_private.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/uni

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

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

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/uni

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 27 + 1 file changed, 9 inser

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 31 ++ 1 file changed, 12 insertions(+), 19 deleti

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorc

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- dri

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --g

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchannel.c | 35 +- 1

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/uni

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/uni

[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 <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 44 +++-

[PATCH 25/28] staging: unisys: visorbus: just check for GUID

2017-08-30 Thread David Kershner
Every channel_type must have a valid GUID, checking for the name was just redundant. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 4 +--- 1 file changed, 1 insertion(+),

[PATCH 24/28] staging: unisys: Use size of channel defined in the channel.

2017-08-30 Thread David Kershner
The size of the channel should be pulled from the channel header, not from the message. All channels must be at least the size of the channel_header. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/uni

[PATCH 21/28] staging: unisys: visorchipset: Shorten parser_init_byte_stream.

2017-08-30 Thread David Kershner
Shorten the name of the function parser_init_byte_stream to just parser_init_stream. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 7 +++ 1 file changed, 3 inse

[PATCH 28/28] staging: unisys: change pr_err to dev_err in visor_check_channel

2017-08-30 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Changing pr_err to dev_err in visor_check_channel. Added device as an argument to visor_check_channel to pass into dev_err. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner

[PATCH 14/28] staging: unisys: visorbus: Remove useless initialization.

2017-08-30 Thread David Kershner
The variable ctx was allocated with kzalloc, so all the data inside is zero, no need to reset it to 0. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 3 --- 1 file changed,

[PATCH 23/28] staging: unisys: visornic: Remove unnecessary return values

2017-08-30 Thread David Kershner
From: David Binder <david.bin...@unisys.com> Removes unnecessary return value in send_rcv_posts_if_needed(), since NAPI polling functions do not return errors. Signed-off-by: David Binder <david.bin...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Rev

[PATCH 13/28] staging: unisys: visorbus: Remove useless comment.

2017-08-30 Thread David Kershner
Currently setting it in the right location, so no longer not sure. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/dri

[PATCH 20/28] staging: unisys: visorbus: Move parser functions location in file.

2017-08-30 Thread David Kershner
The parser functions were defined at the top of the file even though they were not referenced until later in the file. This patch moves them closer to where they are defined so they can be easily referenced. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Ti

[PATCH 27/28] staging: unisys: visorbus: remove EXPORT_SYMBOL_GPL for visor_check_channel

2017-08-30 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Removing EXPORT_SYMBOL_GPU from visor_check_channel since it is used only in visorbus. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: T

[PATCH 26/28] staging: unisys: visorbus: Fix up GUID definition

2017-08-30 Thread David Kershner
Fix up the GUID definition to remove some checkpatch warnings as well as using the whole width of the screen. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 5 ++--- 1 fil

[PATCH 07/28] staging: unisys: visorbus: Fix parameter alignment.

2017-08-30 Thread David Kershner
Fixed the following checkpatch warning: visorchannel.c:443: CHECK: Alignment should match open parenthesis Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchannel.c | 2 +- 1 fil

[PATCH 10/28] staging: unisys: Don't check for null before getting driver device.

2017-08-30 Thread David Kershner
. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/include/visorbus.h | 3 +-- drivers/staging/unisys/visorbus/visorbus_main.c | 8 2 files changed, 5 insertions(+), 6 deletions(-) diff --g

[PATCH 05/28] staging: unisys: visornic: Fix miscellaneous block comment format issues.

2017-08-30 Thread David Kershner
From: David Binder <david.bin...@unisys.com> Fixes miscellaneous formatting issues with several block comments throughout visornic_main.c. Signed-off-by: David Binder <david.bin...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: T

[PATCH 22/28] staging: unisys: visorbus: use all 80 characters for multi-line messages

2017-08-30 Thread David Kershner
The file visorchipset had a bunch of comments that were not using the full screen before they wrapped, update the comments to wrap at 80 characters instead. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/st

[PATCH 19/28] staging: unisys: visorbus: remove uneeded initializations

2017-08-30 Thread David Kershner
Several variables were initialized when not needed. Remove the extraneous initializations. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 4 ++-- 1 file changed, 2 inse

[PATCH 09/28] staging: unisys: visorbus: Use __func__ instead of name.

2017-08-30 Thread David Kershner
The dev_err was using the hardcoded function name, as reported by checkpatch, it should be using __func__. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 2 +- 1 fil

[PATCH 11/28] staging: unisys: include: Add comment next to mutex.

2017-08-30 Thread David Kershner
Checkpatch reports an error that no comment was next to the mutex lock. Add an appropriate message for the lock. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/include/visorbus.h | 6 +++--- 1 fil

[PATCH 12/28] staging: unisys: visorbus: Consolidate controlvm channel creation.

2017-08-30 Thread David Kershner
The functions to create the controlvm channel were disjointed and ignoring information that was available. This patch consolidates it so it clearer what is happening. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- dri

[PATCH 18/28] staging: unisys: visorbus: Remove useless else clause in visorutil_spar_detect.

2017-08-30 Thread David Kershner
The function visorutil_spar_detect had an if clause that returns from the function, no need to do the rest of the code in an else clause. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/vi

[PATCH 17/28] staging: unisys: Change data to point to visor_controlvm_parameters_header.

2017-08-30 Thread David Kershner
-Hartman <gre...@linuxfoundation.org> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 23 +++ 1 file changed, 9 insertions(+), 14 deletions(-) diff --git

[PATCH 16/28] staging: unisys: visorbus: Split else if blocks into multiple if.

2017-08-30 Thread David Kershner
Visorbus_configure had a block of "else if" clauses at the beginning of the function. Simplify this to just being "if" clauses since each code block ended with a goto. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@uni

[PATCH 15/28] staging: unisys: visorbus: Remove check for valid parm_addr.

2017-08-30 Thread David Kershner
The variable parm_addr will never be null, so no need to check for it. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 04/28] staging: unisys: visornic: Fix up existing function comments.

2017-08-30 Thread David Kershner
From: David Binder <david.bin...@unisys.com> Refactors existing static function comments to increase code readability. Signed-off-by: David Binder <david.bin...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@uni

[PATCH 08/28] staging: unisys: visorbus: Convert macros to functions.

2017-08-30 Thread David Kershner
Several macros in visorchannel.c were doing complex arithmetic, converted them to functions so that valid type checking could be done. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorch

[PATCH 00/28] staging: unisys: More updates to make the code more readable.

2017-08-30 Thread David Kershner
Checkpatch cleanups and other misc cleanups. David Binder (3): staging: unisys: visornic: Fix up existing function comments. staging: unisys: visornic: Fix miscellaneous block comment format issues. staging: unisys: visornic: Remove unnecessary return values David Kershner (21): staging

[PATCH 06/28] staging: unisys: visorbus: Clean up vmcall address function.

2017-08-30 Thread David Kershner
, it helped clean up the formatting of the function. Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorchipset.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-)

[PATCH 03/28] staging: unisys: visorbus: visorbus_main.c: Fix return values for checks in visorbus_register_visor_driver.

2017-08-30 Thread David Kershner
dgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visorbus/visorbus_main.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/

[PATCH 02/28] staging: unisys: visorbus: visorchipset.c: Fix bug in parser_init_byte_stream.

2017-08-30 Thread David Kershner
ed before this gets called. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Reported-by: Dan Carpenter <dan.carpen...@oracle.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/u

[PATCH 01/28] staging: unisys: use the kernel min define

2017-08-30 Thread David Kershner
The kernel already provides a min function, we should be using that instead of creating our own MINNUM. Reviewed-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --

[PATCH v2 43/46] staging: unisys: visorbus: Get rid of passthrough function visorchipset_bus_destroy

2017-08-22 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> The function visorchipset_bus_destroy just called viosrbus_remove_instance, we can just combine it with visorbus_remove_instance. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner

[PATCH v2 42/46] staging: unisys: include: iochannel.h: Add proper copyright statement

2017-08-22 Thread David Kershner
From: David Binder <david.bin...@unisys.com> Adds the proper Unisys copyright statement to the top of iochannel.h. Signed-off-by: David Binder <david.bin...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com&

[PATCH v2 46/46] staging: unisys: use ATTRIBUTE_GROUPS instead of creating our own

2017-08-22 Thread David Kershner
Greg noticed that we were creating our own attribute groups, instead of using the ATTRIBUTE_GROUPS macro, this patch fixes our mistake. Reported-by: Greg Kroah-Hartman <gre...@linuxfoundation.org> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sel

[PATCH v2 33/46] staging: unisys: reference bus_no and dev_no directly

2017-08-22 Thread David Kershner
Don't store it in a local variable but reference it from the visor_device. Reviewed-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/staging/unisys/visor

[PATCH v2 44/46] staging: unisys: visorbus: Get rid of passthrough function visorchipset_device_create

2017-08-22 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> The function visorchipset_device_create just called create_visor_device, we can just combine it with create_visor_device. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner

[PATCH v2 41/46] staging: unisys: visorinput: ultrainputreport.h: Adjust comment formatting

2017-08-22 Thread David Kershner
From: David Binder <david.bin...@unisys.com> The first line of the top file comment should begin on the line following the block comment opening, thereby following the convention used elsewhere in the driver set. Signed-off-by: David Binder <david.bin...@unisys.com> Signed-off-by: Da

[PATCH v2 45/46] staging: unisys: visorbus: Get rid of passthrough function visorchipset_device_destroy

2017-08-22 Thread David Kershner
From: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> The function visorchipset_device_destroy just called remove_visor_device, we can just combine it with remove_visor_device. Signed-off-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner

[PATCH v2 31/46] staging: unisys: visorbus: Remove confusing comment in controlvmchannel.

2017-08-22 Thread David Kershner
Referencing a SegmentIndex doesn't make sense in the Linux drivers, get rid of the comment. Reviewed-by: Sameer Wadgaonkar <sameer.wadgaon...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- drivers/stagi

[PATCH v2 39/46] staging: unisys: include: visorbus.h: Remove filename in top comment

2017-08-22 Thread David Kershner
From: David Binder <david.bin...@unisys.com> Removes unnecessary filename in the top file comment. Signed-off-by: David Binder <david.bin...@unisys.com> Signed-off-by: David Kershner <david.kersh...@unisys.com> Reviewed-by: Tim Sell <timothy.s...@unisys.com> --- driver

  1   2   3   4   5   6   7   8   9   10   >