]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visorinput: re-order declarations for consistency
authorTim Sell <Timothy.Sell@unisys.com>
Fri, 2 Oct 2015 17:19:17 +0000 (13:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:53:34 +0000 (09:53 +0100)
commita5190869476774954cefe62db6cdb5b24de1d27e
tree53a085c9f99c5d6501f94319fe278734fd92be36
parentc011a846f1edc3119dbad8c9f8d65d735f0ae294
staging: unisys: visorinput: re-order declarations for consistency

In order to be more consistent with kernel conventions used elsewhere,
I have re-ordered declarations in visorinput.c to follow this general
order (where possible):
* #defines
* struct/enum/union declarations
* static declarations (const if possible for all of them)
* forward function declarations where absolutely necessary

Exceptions were made for the static declarations like the driver
declaration, given that it depends on previously-defined callbacks.
So such declarations are at the end of visorinput.c.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorinput/visorinput.c