Commit 6497ca07 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab Committed by David S. Miller

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: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 15538575
...@@ -572,13 +572,15 @@ static void sfp_upstream_clear(struct sfp_bus *bus) ...@@ -572,13 +572,15 @@ static void sfp_upstream_clear(struct sfp_bus *bus)
* the sfp_bus structure, incrementing its reference count. This must * the sfp_bus structure, incrementing its reference count. This must
* be put via sfp_bus_put() when done. * be put via sfp_bus_put() when done.
* *
* Returns: on success, a pointer to the sfp_bus structure, * Returns:
* %NULL if no SFP is specified, * - on success, a pointer to the sfp_bus structure,
* on failure, an error pointer value: * - %NULL if no SFP is specified,
* corresponding to the errors detailed for * - on failure, an error pointer value:
* fwnode_property_get_reference_args(). *
* %-ENOMEM if we failed to allocate the bus. * - corresponding to the errors detailed for
* an error from the upstream's connect_phy() method. * fwnode_property_get_reference_args().
* - %-ENOMEM if we failed to allocate the bus.
* - an error from the upstream's connect_phy() method.
*/ */
struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode) struct sfp_bus *sfp_bus_find_fwnode(struct fwnode_handle *fwnode)
{ {
...@@ -612,13 +614,15 @@ EXPORT_SYMBOL_GPL(sfp_bus_find_fwnode); ...@@ -612,13 +614,15 @@ EXPORT_SYMBOL_GPL(sfp_bus_find_fwnode);
* the SFP bus using sfp_register_upstream(). This takes a reference on the * the SFP bus using sfp_register_upstream(). This takes a reference on the
* bus, so it is safe to put the bus after this call. * bus, so it is safe to put the bus after this call.
* *
* Returns: on success, a pointer to the sfp_bus structure, * Returns:
* %NULL if no SFP is specified, * - on success, a pointer to the sfp_bus structure,
* on failure, an error pointer value: * - %NULL if no SFP is specified,
* corresponding to the errors detailed for * - on failure, an error pointer value:
* fwnode_property_get_reference_args(). *
* %-ENOMEM if we failed to allocate the bus. * - corresponding to the errors detailed for
* an error from the upstream's connect_phy() method. * fwnode_property_get_reference_args().
* - %-ENOMEM if we failed to allocate the bus.
* - an error from the upstream's connect_phy() method.
*/ */
int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream, int sfp_bus_add_upstream(struct sfp_bus *bus, void *upstream,
const struct sfp_upstream_ops *ops) const struct sfp_upstream_ops *ops)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment