diff mbox series

[2/2] PCI: endpoint: Add kdoc description of pci_epf_type_add_cfs()

Message ID 20230515051500.574127-3-dlemoal@kernel.org (mailing list archive)
State Superseded
Headers show
Series Fixup changes to pci_epf_type_add_cfs() | expand

Commit Message

Damien Le Moal May 15, 2023, 5:15 a.m. UTC
Restore an improve the kdoc function description for
pci_epf_type_add_cfs() that was removed with commit
893f14fed7d3 ("PCI: endpoint: Move pci_epf_type_add_cfs() code").

Fixes: 893f14fed7d3 ("PCI: endpoint: Move pci_epf_type_add_cfs() code")
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
---
 drivers/pci/endpoint/pci-ep-cfs.c | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

Comments

manivannan.sadhasivam@linaro.org May 15, 2023, 7:21 a.m. UTC | #1
On Mon, May 15, 2023 at 02:15:00PM +0900, Damien Le Moal wrote:
> Restore an improve the kdoc function description for
> pci_epf_type_add_cfs() that was removed with commit
> 893f14fed7d3 ("PCI: endpoint: Move pci_epf_type_add_cfs() code").
> 
> Fixes: 893f14fed7d3 ("PCI: endpoint: Move pci_epf_type_add_cfs() code")
> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
> ---
>  drivers/pci/endpoint/pci-ep-cfs.c | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c
> index d8a6abe2c31c..15e17a661875 100644
> --- a/drivers/pci/endpoint/pci-ep-cfs.c
> +++ b/drivers/pci/endpoint/pci-ep-cfs.c
> @@ -509,6 +509,24 @@ static const struct config_item_type pci_epf_type = {
>  	.ct_owner	= THIS_MODULE,
>  };
>  
> +/**
> + * pci_epf_type_add_cfs() - Help function drivers to expose function specific   
> + *                          attributes in configfs
> + * @epf: the EPF device that has to be configured using configfs
> + * @group: the parent configfs group (corresponding to entries in
> + *         pci_epf_device_id)
> + *
> + * Invoke to expose function specific attributes in configfs.
> + *
> + * Return: NULL if the function driver

Spurious?

- Mani

> + *
> + * Return: A pointer to a config_group structure or NULL if the function driver
> + * does not have anything to expose (attributes configured by user) or if the
> + * the function driver does not implement the add_cfs() method.
> + *
> + * Returns an error pointer if this function is called for an unbound EPF device
> + * or if the EPF driver add_cfs() method fails.
> + */
>  static struct config_group *pci_epf_type_add_cfs(struct pci_epf *epf,
>  						 struct config_group *group)
>  {
> -- 
> 2.40.1
>
Damien Le Moal May 15, 2023, 7:32 a.m. UTC | #2
On 5/15/23 16:21, Manivannan Sadhasivami wrote:
> On Mon, May 15, 2023 at 02:15:00PM +0900, Damien Le Moal wrote:
>> Restore an improve the kdoc function description for
>> pci_epf_type_add_cfs() that was removed with commit
>> 893f14fed7d3 ("PCI: endpoint: Move pci_epf_type_add_cfs() code").
>>
>> Fixes: 893f14fed7d3 ("PCI: endpoint: Move pci_epf_type_add_cfs() code")
>> Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
>> ---
>>  drivers/pci/endpoint/pci-ep-cfs.c | 18 ++++++++++++++++++
>>  1 file changed, 18 insertions(+)
>>
>> diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c
>> index d8a6abe2c31c..15e17a661875 100644
>> --- a/drivers/pci/endpoint/pci-ep-cfs.c
>> +++ b/drivers/pci/endpoint/pci-ep-cfs.c
>> @@ -509,6 +509,24 @@ static const struct config_item_type pci_epf_type = {
>>  	.ct_owner	= THIS_MODULE,
>>  };
>>  
>> +/**
>> + * pci_epf_type_add_cfs() - Help function drivers to expose function specific   
>> + *                          attributes in configfs
>> + * @epf: the EPF device that has to be configured using configfs
>> + * @group: the parent configfs group (corresponding to entries in
>> + *         pci_epf_device_id)
>> + *
>> + * Invoke to expose function specific attributes in configfs.
>> + *
>> + * Return: NULL if the function driver
> 
> Spurious?

Oops. Indeed. Fixing this.

> 
> - Mani
> 
>> + *
>> + * Return: A pointer to a config_group structure or NULL if the function driver
>> + * does not have anything to expose (attributes configured by user) or if the
>> + * the function driver does not implement the add_cfs() method.
>> + *
>> + * Returns an error pointer if this function is called for an unbound EPF device
>> + * or if the EPF driver add_cfs() method fails.
>> + */
>>  static struct config_group *pci_epf_type_add_cfs(struct pci_epf *epf,
>>  						 struct config_group *group)
>>  {
>> -- 
>> 2.40.1
>>
>
diff mbox series

Patch

diff --git a/drivers/pci/endpoint/pci-ep-cfs.c b/drivers/pci/endpoint/pci-ep-cfs.c
index d8a6abe2c31c..15e17a661875 100644
--- a/drivers/pci/endpoint/pci-ep-cfs.c
+++ b/drivers/pci/endpoint/pci-ep-cfs.c
@@ -509,6 +509,24 @@  static const struct config_item_type pci_epf_type = {
 	.ct_owner	= THIS_MODULE,
 };
 
+/**
+ * pci_epf_type_add_cfs() - Help function drivers to expose function specific   
+ *                          attributes in configfs
+ * @epf: the EPF device that has to be configured using configfs
+ * @group: the parent configfs group (corresponding to entries in
+ *         pci_epf_device_id)
+ *
+ * Invoke to expose function specific attributes in configfs.
+ *
+ * Return: NULL if the function driver
+ *
+ * Return: A pointer to a config_group structure or NULL if the function driver
+ * does not have anything to expose (attributes configured by user) or if the
+ * the function driver does not implement the add_cfs() method.
+ *
+ * Returns an error pointer if this function is called for an unbound EPF device
+ * or if the EPF driver add_cfs() method fails.
+ */
 static struct config_group *pci_epf_type_add_cfs(struct pci_epf *epf,
 						 struct config_group *group)
 {