iio: adc: cc10001: Devm conversion
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 5 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | iio: adc: cc10001: Add local struct device *dev variable to avoid repititiondrivers/ | +9 | 0 replies | |
| 2/5 | iio: adc: cc10001: Add devm_add_action_or_reset() to disable regulator.drivers/ | +13 | 0 replies | |
| 3/5 | iio: adc: cc10001: Use devm_clk_get_enabled() to avoid boilerplate.drivers/ | +4 | 1 reply | |
| 4/5 | iio: adc: cc10001: Use devm_ to call device power down.drivers/ | +8 | 0 replies | |
| 5/5 | iio: adc: cc10001: Switch remaining IIO calls in probe to devm_ forms.drivers/ | +3 | 1 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.
| Patch | Nuno Sá |
|---|---|
| Series | R-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.
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.
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