Skip to content

iio: adc: cc10001: Devm conversion

Jonathan Cameron linux-iio 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iio: adc: cc10001: Add local struct device *dev variable to avoid repititiondrivers/iio/adc/cc10001_adc.c+9 -80 replies
2/5iio: adc: cc10001: Add devm_add_action_or_reset() to disable regulator.drivers/iio/adc/cc10001_adc.c+13 -100 replies
3/5iio: adc: cc10001: Use devm_clk_get_enabled() to avoid boilerplate.drivers/iio/adc/cc10001_adc.c+4 -141 reply
4/5iio: adc: cc10001: Use devm_ to call device power down.drivers/iio/adc/cc10001_adc.c+8 -10 replies
5/5iio: adc: cc10001: Switch remaining IIO calls in probe to devm_ forms.drivers/iio/adc/cc10001_adc.c+3 -251 reply

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchNuno Sá
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] iio: adc: cc10001: Devm conversion

From: Jonathan Cameron <[email protected]>

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 <[email protected]>
Cc Naidu Tellapati <[email protected]>

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(-)
Signature · 1 line
2.37.2