OSDN Git Service

staging: comedi: mite: Replace function mite_request_channel_in_range()
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Mon, 1 Jul 2019 07:00:25 +0000 (12:30 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 16:28:28 +0000 (18:28 +0200)
commitfd315da57dc37b7d9f3f145f88eb66085279d48a
treee7f4b294622128ab690ed2d81edd40aa482c0951
parent931282a9c7a6ea366c5a8a3c5a0f021681d19d9d
staging: comedi: mite: Replace function mite_request_channel_in_range()

Remove function mite_request_channel_in_range as all it does is call
__mite_request_channel.
Rename __mite_request_channel to mite_request_channel_in_range and
change its type from static to non-static to maintain compatibility with
call sites.
Change only remaining call site of __mite_request_channel to call
mite_request_channel_in_range_instead.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Link: https://lore.kernel.org/r/20190701070025.3838-3-nishkadg.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/mite.c