Skip to contentSkip to conversation

Documentation: devres: add missing I2C helper

PATCH Superseded Yang Yingliang 3 participants 4 messages Nov 2, 2022

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: devres: add missing I2C helper

Add missing devm_i2c_add_adapter() to devres.rst. It's introduced by commit 07740c92ae57 ("i2c: core: add managed function for adding i2c adapters").

Fixes 07740c92ae57 ("i2c: core: add managed function for adding i2c adapters")
Cc Yicong Yang <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Dmitry Osipenko <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Jonathan Corbet <[email protected]>
---
 Documentation/driver-api/driver-model/devres.rst | 1 +
 1 file changed, 1 insertion(+)
Documentation/driver-api/driver-model/devres.rst +1 -0
index 853396d19419..ec97261530da 100644
@@ -280,6 +280,7 @@ GPIO
 
 I2C
   devm_i2c_new_dummy_device()
+  devm_i2c_add_adapter()
 
 IIO
   devm_iio_device_alloc()
Signature · 1 line
2.25.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Yang Yingliang

Add missing devm_i2c_add_adapter() to devres.rst. It's introduced by commit 07740c92ae57 ("i2c: core: add managed function for adding i2c adapters").

Fixes 07740c92ae57 ("i2c: core: add managed function for adding i2c adapters")
Cc Yicong Yang <[email protected]>

I forgot to update the doc, sorry for that.

Quoted 22 lines
Cc Andy Shevchenko <[email protected]>
Cc Dmitry Osipenko <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Jonathan Corbet <[email protected]>
---
 Documentation/driver-api/driver-model/devres.rst | 1 +
 1 file changed, 1 insertion(+)
Documentation/driver-api/driver-model/devres.rst +1 -0
index 853396d19419..ec97261530da 100644
@@ -280,6 +280,7 @@ GPIO
 
 I2C
   devm_i2c_new_dummy_device()
+  devm_i2c_add_adapter()
 
 IIO
   devm_iio_device_alloc()
Reviewed-by on v1 1/1
#2 lore raw
In reply to Yang Yingliang
Quoted 3 lines · Yang Yingliang

Add missing devm_i2c_add_adapter() to devres.rst. It's introduced by commit 07740c92ae57 ("i2c: core: add managed function for adding i2c adapters").

Okay,

Quoted 6 lines
Fixes 07740c92ae57 ("i2c: core: add managed function for adding i2c adapters")
Cc Yicong Yang <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Dmitry Osipenko <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Jonathan Corbet <[email protected]>

Next time, please use --cc when sending patches, instead of Cc'ing explicitly in the body of the message. The rationale is that we have this email in the archives anyway and every additional byte in the commit message is a waste of resources (storage, energy and as a result not so environment friendly).

Quoted 10 lines
---
 Documentation/driver-api/driver-model/devres.rst | 1 +
 1 file changed, 1 insertion(+)
Documentation/driver-api/driver-model/devres.rst +0 -0
index 853396d19419..ec97261530da 100644

Documentation/driver-api/driver-model/devres.rst GPIO · line 283

Quoted 4 lines
Documentation/driver-api/driver-model/devres.rst +1 -0
@@ -280,6 +280,7 @@ GPIO
 
 I2C
   devm_i2c_new_dummy_device()
+  devm_i2c_add_adapter()

Perhaps keep this list ordered?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw
Quoted 13 lines · Andy Shevchenko
Quoted 3 lines · Yang Yingliang

Add missing devm_i2c_add_adapter() to devres.rst. It's introduced by commit 07740c92ae57 ("i2c: core: add managed function for adding i2c adapters").

Okay,

Quoted 6 lines
Fixes 07740c92ae57 ("i2c: core: add managed function for adding i2c adapters")
Cc Yicong Yang <[email protected]>
Cc Andy Shevchenko <[email protected]>
Cc Dmitry Osipenko <[email protected]>
Cc Wolfram Sang <[email protected]>
Cc Jonathan Corbet <[email protected]>
Quoted 4 lines

Next time, please use --cc when sending patches, instead of Cc'ing explicitly in the body of the message. The rationale is that we have this email in the archives anyway and every additional byte in the commit message is a waste of resources (storage, energy and as a result not so environment friendly).

OK, thanks for your advice.

Quoted 12 lines
Quoted 12 lines
---
  Documentation/driver-api/driver-model/devres.rst | 1 +
  1 file changed, 1 insertion(+)
Documentation/driver-api/driver-model/devres.rst +0 -0
index 853396d19419..ec97261530da 100644
@@ -280,6 +280,7 @@ GPIO
 
Quoted 4 lines

Documentation/driver-api/driver-model/devres.rst GPIO · line 283

Quoted 3 lines
Documentation/driver-api/driver-model/devres.rst +1 -0
  I2C
    devm_i2c_new_dummy_device()
+  devm_i2c_add_adapter()

Perhaps keep this list ordered?

OK, I will send a v2 to change it with your review tag.

Thanks,
Yang

Quoted 1 line