Fix iio_device_attr_read / iio_device_attr_write

They were passing the wrong set of arguments to the backend
functions.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
local backend: Read device name from sysfs

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