Linux IIO development
 help / color / mirror / Atom feed
* [PATCH 0/5] iio: adc: cc10001: Devm conversion
@ 2022-10-16 17:09 Jonathan Cameron
  2022-10-16 17:09 ` [PATCH 1/5] iio: adc: cc10001: Add local struct device *dev variable to avoid repitition Jonathan Cameron
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Jonathan Cameron @ 2022-10-16 17:09 UTC (permalink / raw)
  To: linux-iio; +Cc: Jonathan Cameron, Phani Movva, Naidu Tellapati

From: Jonathan Cameron <Jonathan.Cameron@huawei.com>

A very simple example of how using devm_ managed calls for everything
can reduce complexity error handling and removal ordering in a driver.

Note I don't have one of these to test so if anyone has a chance to do
so or give these a quick look at that would be much appreciated.
Note this is a fairly old driver, so relative unlikely original authors
still have access.

Cc: Phani Movva <Phani.Movva@imgtec.com>
Cc: Naidu Tellapati <naidu.tellapati@imgtec.com>

Jonathan Cameron (5):
  iio: adc: cc10001: Add local struct device *dev variable to avoid
    repitition
  iio: adc: cc10001: Add devm_add_action_or_reset() to disable
    regulator.
  iio: adc: cc10001: Use devm_clk_get_enabled() to avoid boilerplate.
  iio: adc: cc10001: Use devm_ to call device power down.
  iio: adc: cc10001: Switch remaining IIO calls in probe to devm_ forms.

 drivers/iio/adc/cc10001_adc.c | 89 +++++++++++++----------------------
 1 file changed, 34 insertions(+), 55 deletions(-)

-- 
2.37.2


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

end of thread, other threads:[~2022-11-06 11:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-16 17:09 [PATCH 0/5] iio: adc: cc10001: Devm conversion Jonathan Cameron
2022-10-16 17:09 ` [PATCH 1/5] iio: adc: cc10001: Add local struct device *dev variable to avoid repitition Jonathan Cameron
2022-10-16 17:09 ` [PATCH 2/5] iio: adc: cc10001: Add devm_add_action_or_reset() to disable regulator Jonathan Cameron
2022-10-16 17:09 ` [PATCH 3/5] iio: adc: cc10001: Use devm_clk_get_enabled() to avoid boilerplate Jonathan Cameron
2022-10-31 11:19   ` Sa, Nuno
2022-10-16 17:09 ` [PATCH 4/5] iio: adc: cc10001: Use devm_ to call device power down Jonathan Cameron
2022-10-16 17:09 ` [PATCH 5/5] iio: adc: cc10001: Switch remaining IIO calls in probe to devm_ forms Jonathan Cameron
2022-10-31 11:17   ` Sa, Nuno
2022-10-29 12:43 ` [PATCH 0/5] iio: adc: cc10001: Devm conversion Jonathan Cameron
2022-10-31 11:19   ` Sa, Nuno
2022-11-06 11:48     ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox