]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: comedi_bond: use correct minor device numbers in name
authorIan Abbott <abbotti@mev.co.uk>
Fri, 23 Aug 2013 13:45:10 +0000 (14:45 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Aug 2013 13:41:56 +0000 (06:41 -0700)
commite7902ee6992c2e9e2944578033a421d4e31a65ec
treefb581e3ad04c8417a7ab6c55d0cdda75e6c87c76
parent8920f322aa705833c1201286583913f0e6cb7735
staging: comedi: comedi_bond: use correct minor device numbers in name

The board name for "comedi_bond" is constructed from a space-separated
list of items of the form "minor:subdevice" where "minor" is a minor
device number and "subdevice" is a subdevice number.  Currently, all the
"minor" device numbers are for the "comedi_bond" device itself and the
"subdevice" numbers are for the bonded devices.  It makes makes more
sense for the "minor" device numbers to come from the bonded devices as
well so that the string is a list of bonded "minor:subdevice" pairs.
Fix it.

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