[PATCH -next v2 0/2] iio: adc: spear_adc: Simplify with device managed function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit 7ef9651e9792 ("clk: Provide new devm_clk helpers for prepared
and enabled clocks") provides a new helper function to prepare and
enable a clock which keeps prepared (or enabled) during the whole
lifetime of the driver.

Switch to devm_iio_device_register() and drop the remove function.

Use the dev_err_probe() helper to simplify error handling during probe.
This also handle scenario, when EDEFER is returned and useless
error is printed.

Changes in v2:
- Switch to devm_iio_device_register() and drop the remove function.
- Use the dev_err_probe() helper to simplify code.

Jinjie Ruan (2):
  iio: adc: spear_adc: Use device managed function
  iio: adc: spear_adc: Use dev_err_probe()

 drivers/iio/adc/spear_adc.c | 61 ++++++++-----------------------------
 1 file changed, 13 insertions(+), 48 deletions(-)

-- 
2.34.1




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux