libxl: Document device_add_domain_config
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 5 Apr 2019 17:58:11 +0000 (18:58 +0100)
committerWei Liu <wei.liu2@citrix.com>
Tue, 9 Apr 2019 14:06:12 +0000 (15:06 +0100)
commitefa7a7e288723c92f1ff9f706c94acd4ba1c5679
treee16378f51a06b821075231dcb49e2cd4a4759f96
parent25ec8546fd1af45b0ca688dc66b7a59de5dceca1
libxl: Document device_add_domain_config

Commit 03e1a56d81c16eece735e4d0ef74bfb10eaaba07 replaced DEVICE_ADD()
calls by device_add_domain_config() calls but also removed the comment
of DEVICE_ADD(). Copy the useful part of that comment to
device_add_domain_config().

Also, rename the parameter `type` to `dev`, because that parameter isn't
used as a type but as the device we want to add/update to d_config.

Also, constify `dev` because it isn't modified.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_device.c
tools/libxl/libxl_internal.h