Commit 9e25ec9a authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman

staging: wfx: uniformize naming rule

In wfx driver, when a function is used as a struct member, its name is
the name of the member prefixed with "wfx_".

This patch apply this rule to wfx_spi_remove().

Also remove the useless comment above the function.
Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20191217161318.31402-17-Jerome.Pouiller@silabs.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 50e5ac34
...@@ -223,8 +223,7 @@ static int wfx_spi_probe(struct spi_device *func) ...@@ -223,8 +223,7 @@ static int wfx_spi_probe(struct spi_device *func)
return ret; return ret;
} }
/* Disconnect Function to be called by SPI stack when device is disconnected */ static int wfx_spi_remove(struct spi_device *func)
static int wfx_spi_disconnect(struct spi_device *func)
{ {
struct wfx_spi_priv *bus = spi_get_drvdata(func); struct wfx_spi_priv *bus = spi_get_drvdata(func);
...@@ -263,5 +262,5 @@ struct spi_driver wfx_spi_driver = { ...@@ -263,5 +262,5 @@ struct spi_driver wfx_spi_driver = {
}, },
.id_table = wfx_spi_id, .id_table = wfx_spi_id,
.probe = wfx_spi_probe, .probe = wfx_spi_probe,
.remove = wfx_spi_disconnect, .remove = wfx_spi_remove,
}; };
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