Replace debug message calls by suggentions from checkpatch.pl

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Put increment statement in extra line

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Get private structure for info message

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Remove typedefs to satisfy checkpatch.pl
Use define instead of 0 to suppress warning from checkpatch.pl
Change variable names to lowercase
Fix if-statement for coding style