iio: accel: st_accel: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 23 Jul 2013 06:47:00 +0000 (07:47 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:41:18 +0000 (18:41 +0100)
commit6b7e0a9cd42a24e4e2c2a037773a12c375e25b69
treed12b076cc4a0c18c9256e4a719b967c73ff1d200
parent4ee309337e100042c1623c301a4b8ad2487b6330
iio: accel: st_accel: Use devm_iio_device_alloc

Using devm_iio_device_alloc makes code simpler.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Denis Ciocca <denis.ciocca@st.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/st_accel_core.c
drivers/iio/accel/st_accel_i2c.c
drivers/iio/accel/st_accel_spi.c