iio: magnetometer: st_magn: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 2 Aug 2013 10:08:00 +0000 (11:08 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 17:43:14 +0000 (18:43 +0100)
commit7fc5ad7e97a690ccd05ad2556c1bfb687692f215
tree6fb26790848e947af0996702498ead3122673f17
parent907c0a0ae0e0f3b26d1d2bb6f05f116f0a9decc1
iio: magnetometer: st_magn: 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/magnetometer/st_magn_core.c
drivers/iio/magnetometer/st_magn_i2c.c
drivers/iio/magnetometer/st_magn_spi.c