linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] iio: Introduce devm_iio_device_{register,unregister}
@ 2013-09-24 12:05 Sachin Kamat
  2013-09-24 12:05 ` [PATCH 1/8] iio: core: Implement devm_iio_device_{register,unregister} Sachin Kamat
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Sachin Kamat @ 2013-09-24 12:05 UTC (permalink / raw)
  To: linux-iio; +Cc: jic23, lars, sachin.kamat

With the conversion of iio drivers to use device managed APIs, most of the
drivers now have a remove function with only the iio_device_unregister()
call. Thus introduce device managed version of iio_device_register() to
clean up lot of such code.
Have shown the usage in a few drivers to illustrate the cleanup. Will do
for the rest too.
This is only compile tested as I do not have any actual hardware to test ATM.


Sachin Kamat (8):
  iio: core: Implement devm_iio_device_{register,unregister}
  iio: accel: kxsd9: Use devm_iio_device_register
  iio: adc: mcp320x: Use devm_iio_device_register
  iio: adc: mcp3422: Use devm_iio_device_register
  iio: adc: ti-adc081c: Use devm_iio_device_register
  iio: adc: twl6030-gpadc: Use devm_iio_device_register
  iio: adc: viperboard: Use devm_iio_device_register
  iio: amplifiers: ad8366: Use devm_iio_device_register

 Documentation/driver-model/devres.txt |    2 ++
 drivers/iio/accel/kxsd9.c             |   10 +---------
 drivers/iio/adc/mcp320x.c             |    3 +--
 drivers/iio/adc/mcp3422.c             |    9 +--------
 drivers/iio/adc/ti-adc081c.c          |    3 +--
 drivers/iio/adc/twl6030-gpadc.c       |    5 +----
 drivers/iio/adc/viperboard_adc.c      |   12 +----------
 drivers/iio/amplifiers/ad8366.c       |    4 +---
 drivers/iio/industrialio-core.c       |   35 +++++++++++++++++++++++++++++++++
 include/linux/iio/iio.h               |   25 +++++++++++++++++++++++
 10 files changed, 69 insertions(+), 39 deletions(-)

-- 
1.7.9.5


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-09-24 14:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-24 12:05 [PATCH 0/8] iio: Introduce devm_iio_device_{register,unregister} Sachin Kamat
2013-09-24 12:05 ` [PATCH 1/8] iio: core: Implement devm_iio_device_{register,unregister} Sachin Kamat
2013-09-24 12:05 ` [PATCH 2/8] iio: accel: kxsd9: Use devm_iio_device_register Sachin Kamat
2013-09-24 12:05 ` [PATCH 3/8] iio: adc: mcp320x: " Sachin Kamat
2013-09-24 12:05 ` [PATCH 4/8] iio: adc: mcp3422: " Sachin Kamat
2013-09-24 12:05 ` [PATCH 5/8] iio: adc: ti-adc081c: " Sachin Kamat
2013-09-24 12:05 ` [PATCH 6/8] iio: adc: twl6030-gpadc: " Sachin Kamat
2013-09-24 12:05 ` [PATCH 7/8] iio: adc: viperboard: " Sachin Kamat
2013-09-24 12:05 ` [PATCH 8/8] iio: amplifiers: ad8366: " Sachin Kamat
2013-09-24 13:08   ` Jonathan Cameron
2013-09-24 13:13 ` [PATCH 0/8] iio: Introduce devm_iio_device_{register,unregister} Jonathan Cameron
2013-09-24 14:52   ` Sachin Kamat

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).