iio: introduce type casts to avoid __ucmpdi2 calls
[firefly-linux-kernel-4.4.55.git] / drivers / staging / iio / adc / ad7192.c
index 31c376b9d5eb1ec57fb826c1004f5e6f52031257..d8bf559fef876ab380cf8cbce5e034918fa3b41c 100644 (file)
@@ -795,7 +795,7 @@ static ssize_t ad7192_set(struct device *dev,
                return -EBUSY;
        }
 
-       switch (this_attr->address) {
+       switch ((u32) this_attr->address) {
        case AD7192_REG_GPOCON:
                if (val)
                        st->gpocon |= AD7192_GPOCON_BPDSW;