A few changes to the amplc_pc263 driver. Patch 1 adds a couple of
helper functions to check the bus type and hide the IS_ENABLED() stuff.
Patch 2 changes pc263_detach() to use the same bus type tests as
pc263_attach(). Patch 3 defines a couple of macros to abbreviate the
IS_ENABLED() macro calls.
v2: Uses inline functions instead of functionlike macros and changes the
order of the patches so that the "abbreviate IS_ENABLED()" patch can be
discarded if not wanted.
1: amplc_pc263: add helper functions to check bus type
2: amplc_pc263: check bus type in detach routine
3: amplc_pc263: abbreviate IS_ENABLED()
drivers/staging/comedi/drivers/amplc_pc263.c | 52 ++++++++++++++++---------
1 files changed, 33 insertions(+), 19 deletions(-)
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel
[Linux Driver Backports]
[Video for Linux]
[Linux USB Devel]
[Linux Audio Users]
[Photos]
[Yosemite Photos]
[Free Singles Community]
[Linux Kernel]
[Linux SCSI]
[XFree86]
[Yosemite Backpacking]