iio:bma180: Use bool instead of int for state