Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1345846

[PATCH V2 2/2] i2c: Add resource managed version of i2c_{new_dummy, unregister_device}

From Laxman Dewangan <ldewangan@nvidia.com>
Newsgroups linux.kernel
Subject [PATCH V2 2/2] i2c: Add resource managed version of i2c_{new_dummy, unregister_device}
Date 2016-02-29 15:00 +0100
Message-ID <r7wwG-3Kx-3@gated-at.bofh.it> (permalink)
References <r7wwG-3Kx-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


i2c_new_dummy() and i2c_unregister_device() gained their devm_ wrappers.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
- New in series.

 Documentation/driver-model/devres.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
index 831a536..e5279fa 100644
--- a/Documentation/driver-model/devres.txt
+++ b/Documentation/driver-model/devres.txt
@@ -253,6 +253,10 @@ GPIO
   devm_gpiod_get_optional()
   devm_gpiod_put()
 
+I2C
+  devm_i2c_new_dummy()
+  devm_i2c_unregister_device()
+
 IIO
   devm_iio_device_alloc()
   devm_iio_device_free()
-- 
2.1.4

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH V2 1/2] i2c: core: add devm apis for i2c_new_dummy and i2c_unregister Laxman Dewangan <ldewangan@nvidia.com> - 2016-02-29 15:00 +0100
  [PATCH V2 2/2] i2c: Add resource managed version of i2c_{new_dummy, unregister_device} Laxman Dewangan <ldewangan@nvidia.com> - 2016-02-29 15:00 +0100

csiph-web