iio: core: Fix suspicious sizeof usage
authorOrson Zhai <orson.zhai@spreadtrum.com>
Tue, 25 Apr 2017 01:16:56 +0000 (09:16 +0800)
committerJonathan Cameron <jic23@kernel.org>
Thu, 27 Apr 2017 05:30:52 +0000 (06:30 +0100)
commit1016d56765740e02a613346f22a35c0ae7bccac4
tree131bae54792d855ccfb3e4a7ae0b0869a36959b9
parent80a49fd8244e810380adeacca10712c7a867d709
iio: core: Fix suspicious sizeof usage

Pointer size is variours in different system, say 32bit for 4 and 64bit
for 8. The 'sizeof(infomask)' may lead to wrong bit numbers.

Signed-off-by: Orson Zhai <orson.zhai@spreadtrum.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-core.c