UBUNTU: SAUCE: staging: comedi: Add kernel config for default buffer sizes
authorIan Abbott <abbotti@mev.co.uk>
Fri, 13 Apr 2012 13:12:54 +0000 (14:12 +0100)
committerLeann Ogasawara <leann.ogasawara@canonical.com>
Wed, 18 Apr 2012 14:41:12 +0000 (07:41 -0700)
commitff15ec1fc8ea0413581eddb2892907c856571abc
treecbfe43399269abbb0b44ef1615ec34766accc813
parent4be7bceb4a46bc8786772b1b37fbd82554c3ddb7
UBUNTU: SAUCE: staging: comedi: Add kernel config for default buffer sizes

BugLink: http://bugs.launchpad.net/bugs/981234

Allow the default values for the module parameters for the default
initial buffer size and default maximum buffer size to be specified in
the kernel configuration.

I'm not sure what the defaults for the defaults for the defaults should
be, but 64 KiB seems to small, so I used values suggested by Bernd Porr,
which are 2048 KiB for the default initial buffer size and 20480 for the
default maximum buffer size.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Cc: Bernd Porr <berndporr@f2s.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 234bb3c60f1f1489630750aba4adf40154e0bd70 in
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-next)

Signed-off-by: Leann Ogasawara <leann.ogasawara@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/staging/comedi/Kconfig
drivers/staging/comedi/comedi_fops.c