Alter prototype of function iio_device_find_channel

It now also takes a boolean parameter, which tells if the channel
to look for is an output channel or not.

This is required as two channels can actually have the same ID, as
long as their direction is opposed.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>