staging:iio: use ida_simple_get and ida_simple_remove + merge ids
authorJonathan Cameron <jic23@cam.ac.uk>
Tue, 30 Aug 2011 11:41:07 +0000 (12:41 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:00:25 +0000 (16:00 -0700)
commit47c24fdd4253a2c8d730b978a186923b1af5e879
treec70e6887bb431943e5307d328bb0f480f802f738
parent5aa9618896e0ba49b444731f9fafa7f7c18a13ab
staging:iio: use ida_simple_get and ida_simple_remove + merge ids

Use new simple ida allocation functions to remove some boilerplate
code.

Also, now we only have one chdev per device we don't need to maintain
a separate ida for minor numbers. Just use the devices id.

Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/industrialio-core.c
drivers/staging/iio/industrialio-trigger.c
This page took 0.02716 seconds and 5 git commands to generate.