Staging: comedi: serial2002: decrease stack usage
authorIan Abbott <abbotti@mev.co.uk>
Fri, 20 Nov 2009 11:32:36 +0000 (11:32 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:23:04 +0000 (12:23 -0800)
commit67a6efb1f86eb51e4b702c4e8e735ca24e3427d8
treefbb1f57d9bdea6b8c7807dfc74d74b1f34d773b3
parentea25371a78c33e276527361d3ab19393d558b2fd
Staging: comedi: serial2002: decrease stack usage

512 bytes of stack can be saved in serial_2002_open() by modifying
'struct config_t'.  A short int suffices for the 'kind' and 'bits'
members.  (Actually, a char would suffice, but wouldn't save any more
stack than a short int.)

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/comedi/drivers/serial2002.c