iio: pressure: st_pressure: Use devm_iio_device_alloc
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 30 Jul 2013 06:24:00 +0000 (07:24 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 3 Aug 2013 20:02:38 +0000 (21:02 +0100)
commitd0fe8c8b3b683979f31dfe2ebba6bb1eade21ccd
tree1548940892c5de17a9661836d97964fdf21ee0ad
parentb46400c639de7b0b3abce226b7ba0cbb253a4806
iio: pressure: st_pressure: 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/pressure/st_pressure_core.c
drivers/iio/pressure/st_pressure_i2c.c
drivers/iio/pressure/st_pressure_spi.c