Skip to contentSkip to conversation

docs/devel: fix description of OBJECT_DECLARE_SIMPLE_TYPE

RFC PATCH In review Alex Bennée 3 participants 4 messages Jul 12, 2022 – Jul 25, 2022

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 docs/devel: fix description of OBJECT_DECLARE_SIMPLE_TYPE

Since 30b5707c26 (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros) we don't need the additional two parameters. Fix the documentation.

---
 docs/devel/qom.rst | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
docs/devel/qom.rst +1 -2
index e5fe3597cd..0cf9a714f0 100644
@@ -292,8 +292,7 @@ in the header file:
 .. code-block:: c
    :caption: Declaring a simple type
 
-   OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, my_device,
-                              MY_DEVICE, DEVICE)
+   OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, MY_DEVICE)
 
 This is equivalent to the following:
 
Signature · 1 line
2.30.2
#3 lore raw
In reply to Alex Bennée
Quoted 14 lines · Alex Bennée

Since 30b5707c26 (qom: Remove module_obj_name parameter from OBJECT_DECLARE* macros) we don't need the additional two parameters. Fix the documentation.

---
 docs/devel/qom.rst | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
docs/devel/qom.rst +0 -0
index e5fe3597cd..0cf9a714f0 100644

docs/devel/qom.rst in the header file: · line 297

Quoted 8 lines
docs/devel/qom.rst +1 -2
@@ -292,8 +292,7 @@ in the header file:
 .. code-block:: c
    :caption: Declaring a simple type
 
-   OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, my_device,
-                              MY_DEVICE, DEVICE)
+   OBJECT_DECLARE_SIMPLE_TYPE(MyDevice, MY_DEVICE)
 
 This is equivalent to the following:

Queued to testing/next, thanks.

Signature · 1 line
Alex Bennée