]> 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)
commit6974ce04b60c08536633b2665a2c46975da5cf56
tree53a085c9f99c5d6501f94319fe278734fd92be36
parent5e114beea053d42146c3cf4d0ef73a6f420cab76
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