iio: introduce type casts to avoid __ucmpdi2 calls
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 25 Oct 2011 08:51:04 +0000 (10:51 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 00:28:56 +0000 (16:28 -0800)
commite15fbc91a4304a977ed99c3eb21bab7015e86c11
treeb1cfbe3c7800f9f9192ea4a3a7e6a9df2e049d07
parent53b99be7647bc1d821a817c58d1504547ca0c75f
iio: introduce type casts to avoid __ucmpdi2 calls

This patch type casts the switch control variable to 32 bits in order to
prevent a call __ucmpdi2 generated by some versions of gcc.

This fixes an undefined reference to `__ucmpdi2' when compiled for arch/blackfin

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/adc/ad7192.c
drivers/staging/iio/adc/ad7280a.c
drivers/staging/iio/dds/ad9832.c
drivers/staging/iio/dds/ad9834.c
drivers/staging/iio/impedance-analyzer/ad5933.c