Skip to content

Commit 6497ca0

Browse files
mchehabdavem330
authored andcommitted
net: phy: sfp-bus.c: get rid of docs warnings
The indentation for the returned values are weird, causing those warnings: ./drivers/net/phy/sfp-bus.c:579: WARNING: Unexpected indentation. ./drivers/net/phy/sfp-bus.c:619: WARNING: Unexpected indentation. Use a list and change the identation for it to be properly parsed by the documentation toolchain. Signed-off-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1553857 commit 6497ca0

File tree

1 file changed

+18
-14
lines changed

1 file changed

+18
-14
lines changed

drivers/net/phy/sfp-bus.c

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -572,13 +572,15 @@ static void sfp_upstream_clear(struct sfp_bus *bus)
572572
* the sfp_bus structure, incrementing its reference count. This must
573573
* be put via sfp_bus_put() when done.
574574
*
575-
* Returns: on success, a pointer to the sfp_bus structure,
576-
* %NULL if no SFP is specified,
577-
* on failure, an error pointer value:
578-
* corresponding to the errors detailed for
579-
* fwnode_property_get_reference_args().
580-
* %-ENOMEM if we failed to allocate the bus.
581-
* an error from the upstream's connect_phy() method.
575+
* Returns:
576+
* - on success, a pointer to the sfp_bus structure,
577+
* - %NULL if no SFP is specified,
578+
* - on failure, an error pointer value:
579+
*
580+
* - corresponding to the errors detailed for
581+
* fwnode_property_get_reference_args().
582+
* - %-ENOMEM if we failed to allocate the bus.
583+
* - an error from the upstream's connect_phy() method.
582584
*/
583585
struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode)
584586
{
@@ -612,13 +614,15 @@ EXPORT_SYMBOL_GPL(sfp_bus_find_fwnode);
612614
* the SFP bus using sfp_register_upstream(). This takes a reference on the
613615
* bus, so it is safe to put the bus after this call.
614616
*
615-
* Returns: on success, a pointer to the sfp_bus structure,
616-
* %NULL if no SFP is specified,
617-
* on failure, an error pointer value:
618-
* corresponding to the errors detailed for
619-
* fwnode_property_get_reference_args().
620-
* %-ENOMEM if we failed to allocate the bus.
621-
* an error from the upstream's connect_phy() method.
617+
* Returns:
618+
* - on success, a pointer to the sfp_bus structure,
619+
* - %NULL if no SFP is specified,
620+
* - on failure, an error pointer value:
621+
*
622+
* - corresponding to the errors detailed for
623+
* fwnode_property_get_reference_args().
624+
* - %-ENOMEM if we failed to allocate the bus.
625+
* - an error from the upstream's connect_phy() method.
622626
*/
623627
int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
624628
const struct sfp_upstream_ops *ops)

0 commit comments

Comments
 (0)