Commit 018a0c58 authored by Dan Murphy's avatar Dan Murphy Committed by Marc Kleine-Budde

can: tcan4x5x: rename parse_config() function

Rename the tcan4x5x_parse_config() function to tcan4x5x_get_gpios() since the
function retrieves the gpio configurations from the firmware.
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
Link: http://lore.kernel.org/r/20200226140358.30017-1-dmurphy@ti.comSigned-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent d1390d7d
...@@ -375,7 +375,7 @@ static int tcan4x5x_disable_state(struct m_can_classdev *cdev) ...@@ -375,7 +375,7 @@ static int tcan4x5x_disable_state(struct m_can_classdev *cdev)
TCAN4X5X_DISABLE_INH_MSK, 0x01); TCAN4X5X_DISABLE_INH_MSK, 0x01);
} }
static int tcan4x5x_parse_config(struct m_can_classdev *cdev) static int tcan4x5x_get_gpios(struct m_can_classdev *cdev)
{ {
struct tcan4x5x_priv *tcan4x5x = cdev->device_data; struct tcan4x5x_priv *tcan4x5x = cdev->device_data;
int ret; int ret;
...@@ -498,7 +498,7 @@ static int tcan4x5x_can_probe(struct spi_device *spi) ...@@ -498,7 +498,7 @@ static int tcan4x5x_can_probe(struct spi_device *spi)
if (ret) if (ret)
goto out_clk; goto out_clk;
ret = tcan4x5x_parse_config(mcan_class); ret = tcan4x5x_get_gpios(mcan_class);
if (ret) if (ret)
goto out_power; goto out_power;
......
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