tools: iio: make scale and offset files optional
authorJoo Aun Saw <jasaw@dius.com.au>
Thu, 23 Jul 2015 02:53:47 +0000 (12:53 +1000)
committerJonathan Cameron <jic23@kernel.org>
Thu, 23 Jul 2015 19:45:50 +0000 (20:45 +0100)
commit7868dfd216074fc5f902e7befacda2a0ec76e403
treef3665bc22d03de52a68bc5db51f79eccd71f1cc8
parent1e9676a8474b657b6a793f0abff2205783a1ce6f
tools: iio: make scale and offset files optional

Make scale and offset optional by adding -ENOENT check as not all
drivers implement them.

Signed-off-by: Joo Aun Saw <jasaw@dius.com.au>
Acked-by: Hartmut Knaack <knaack.h@gmx.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
tools/iio/iio_utils.c