dsp: pdr: Rename pldm_entity_association_pdr_add_from_node_check()

Introduce pldm_entity_association_pdr_add_from_node(), deprecate
pldm_entity_association_pdr_add_from_node_check(), add the rename
configuration and apply it.

Change-Id: Id4f20365115977810491e8feb465042e51e3a267
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bfbc7fe..8713e65 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -47,6 +47,7 @@
 
    - `get_fru_record_by_option_check()`
    - `pldm_entity_association_pdr_add_check()`
+   - `pldm_entity_association_pdr_add_from_node_check()`
    - `pldm_pdr_add_check()`
    - `pldm_pdr_add_fru_record_set_check()`
 
diff --git a/abi/x86_64/gcc.dump b/abi/x86_64/gcc.dump
index efd7a2f..62e7890 100644
--- a/abi/x86_64/gcc.dump
+++ b/abi/x86_64/gcc.dump
@@ -4351,7 +4351,7 @@
     },
     '76434' => {
       'Header' => 'pdr.h',
-      'Line' => '636',
+      'Line' => '639',
       'Param' => {
         '0' => {
           'name' => 'pdr',
@@ -4379,7 +4379,7 @@
     },
     '76762' => {
       'Header' => 'pdr.h',
-      'Line' => '624',
+      'Line' => '627',
       'Param' => {
         '0' => {
           'name' => 'tree',
@@ -4394,7 +4394,7 @@
     },
     '76816' => {
       'Header' => 'pdr.h',
-      'Line' => '614',
+      'Line' => '617',
       'Param' => {
         '0' => {
           'name' => 'tree',
@@ -4409,7 +4409,7 @@
     },
     '76879' => {
       'Header' => 'pdr.h',
-      'Line' => '604',
+      'Line' => '607',
       'Param' => {
         '0' => {
           'name' => 'org_tree',
@@ -4425,7 +4425,7 @@
     },
     '77263' => {
       'Header' => 'pdr.h',
-      'Line' => '578',
+      'Line' => '581',
       'Param' => {
         '0' => {
           'name' => 'tree',
@@ -4441,7 +4441,7 @@
     },
     '77543' => {
       'Header' => 'pdr.h',
-      'Line' => '592',
+      'Line' => '595',
       'Param' => {
         '0' => {
           'name' => 'tree',
@@ -4520,7 +4520,7 @@
     },
     '78568' => {
       'Header' => 'pdr.h',
-      'Line' => '539',
+      'Line' => '542',
       'Param' => {
         '0' => {
           'name' => 'tree',
@@ -4540,7 +4540,7 @@
     },
     '78855' => {
       'Header' => 'pdr.h',
-      'Line' => '528',
+      'Line' => '531',
       'Param' => {
         '0' => {
           'name' => 'node',
@@ -4613,7 +4613,7 @@
         }
       },
       'Return' => '100',
-      'ShortName' => 'pldm_entity_association_pdr_add_from_node_check'
+      'ShortName' => 'pldm_entity_association_pdr_add_from_node'
     },
     '79306' => {
       'Header' => 'pdr.h',
@@ -4641,7 +4641,7 @@
     },
     '80829' => {
       'Header' => 'pdr.h',
-      'Line' => '565',
+      'Line' => '568',
       'Param' => {
         '0' => {
           'name' => 'parent',
@@ -4661,7 +4661,7 @@
     },
     '80918' => {
       'Header' => 'pdr.h',
-      'Line' => '551',
+      'Line' => '554',
       'Param' => {
         '0' => {
           'name' => 'node',
@@ -9504,6 +9504,7 @@
       'pldm_close' => 1,
       'pldm_entity_association_pdr_add' => 1,
       'pldm_entity_association_pdr_add_check' => 1,
+      'pldm_entity_association_pdr_add_from_node' => 1,
       'pldm_entity_association_pdr_add_from_node_check' => 1,
       'pldm_entity_association_pdr_add_from_node_with_record_handle' => 1,
       'pldm_entity_association_pdr_extract' => 1,
diff --git a/evolutions/current/pldm_entity_association_pdr_add_from_node_check.yaml b/evolutions/current/pldm_entity_association_pdr_add_from_node_check.yaml
new file mode 100644
index 0000000..24feedc
--- /dev/null
+++ b/evolutions/current/pldm_entity_association_pdr_add_from_node_check.yaml
@@ -0,0 +1,2 @@
+- QualifiedName: pldm_entity_association_pdr_add_from_node_check
+  NewName: pldm_entity_association_pdr_add_from_node
diff --git a/include/libpldm/pdr.h b/include/libpldm/pdr.h
index 7befcad..c88df4c 100644
--- a/include/libpldm/pdr.h
+++ b/include/libpldm/pdr.h
@@ -508,6 +508,9 @@
  *
  *  @return 0 on success, -EINVAL if the provided arguments are invalid.
  */
+int pldm_entity_association_pdr_add_from_node(
+	pldm_entity_node *node, pldm_pdr *repo, pldm_entity **entities,
+	size_t num_entities, bool is_remote, uint16_t terminus_handle);
 int pldm_entity_association_pdr_add_from_node_check(
 	pldm_entity_node *node, pldm_pdr *repo, pldm_entity **entities,
 	size_t num_entities, bool is_remote, uint16_t terminus_handle);
diff --git a/meson.build b/meson.build
index 52a114d..6e91c92 100644
--- a/meson.build
+++ b/meson.build
@@ -35,6 +35,7 @@
   libpldm_deprecated_aliases += [
     ['get_fru_record_by_option_check', 'get_fru_record_by_option'],
     ['pldm_entity_association_pdr_add_check', 'pldm_entity_association_pdr_add'],
+    ['pldm_entity_association_pdr_add_from_node_check', 'pldm_entity_association_pdr_add_from_node'],
     ['pldm_pdr_add_check', 'pldm_pdr_add'],
     ['pldm_pdr_add_fru_record_set_check', 'pldm_pdr_add_fru_record_set'],
   ]
diff --git a/src/dsp/pdr.c b/src/dsp/pdr.c
index b592340..0c73919 100644
--- a/src/dsp/pdr.c
+++ b/src/dsp/pdr.c
@@ -946,7 +946,7 @@
 }
 
 LIBPLDM_ABI_STABLE
-int pldm_entity_association_pdr_add_from_node_check(
+int pldm_entity_association_pdr_add_from_node(
 	pldm_entity_node *node, pldm_pdr *repo, pldm_entity **entities,
 	size_t num_entities, bool is_remote, uint16_t terminus_handle)
 {