]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: kpc2000: use IDA to assign card numbers.
authorJeremy Sowden <jeremy@azazel.net>
Tue, 21 May 2019 10:35:22 +0000 (11:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 May 2019 12:44:21 +0000 (14:44 +0200)
commitf731540813474de5d371d650ef00443aa7811b92
treec6290f2b0f105dcc547de375d94fccc4a174c748
parent80bcd6cc3966229f030c9903976245543208f446
staging: kpc2000: use IDA to assign card numbers.

Previously the next card number was assigned from a static int local
variable.  Replaced it with an IDA.  Avoids the assignment of ever-
increasing card-numbers by allowing them to be reused.

Updated TODO.

Corrected format-specifier for unsigned pcard->card_num.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/kpc2000/TODO
drivers/staging/kpc2000/kpc2000/core.c