Commit 0cc61bcf authored by Miguel Gazquez's avatar Miguel Gazquez Committed by Fabio Baltieri
Browse files

drivers: udc: Fix log in "disable" function



udc_skeleton incorrectly logs "Enable device" in the function
"udc_skeleton_disable", and some UDC drivers inherited this mistake.

Fix this by correcting the log message in all affected drivers.

Signed-off-by: default avatarMiguel Gazquez <miguel.gazquez@bootlin.com>
parent 13e152a5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1561,7 +1561,7 @@ static int udc_numaker_enable(const struct device *dev)

static int udc_numaker_disable(const struct device *dev)
{
	LOG_DBG("Enable device %p", dev);
	LOG_DBG("Disable device %p", dev);

	/* S/W disconnect */
	numaker_usbd_sw_disconnect(dev);
+1 −1
Original line number Diff line number Diff line
@@ -490,7 +490,7 @@ static int udc_renesas_ra_disable(const struct device *dev)
		return -EIO;
	}

	LOG_DBG("Enable device %p", dev);
	LOG_DBG("Disable device %p", dev);

	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -952,7 +952,7 @@ static int udc_rpi_pico_disable(const struct device *dev)
	const struct rpi_pico_config *config = dev->config;

	config->irq_disable_func(dev);
	LOG_DBG("Enable device %p", dev);
	LOG_DBG("Disable device %p", dev);

	return 0;
}
+1 −1
Original line number Diff line number Diff line
@@ -209,7 +209,7 @@ static int udc_skeleton_enable(const struct device *dev)

static int udc_skeleton_disable(const struct device *dev)
{
	LOG_DBG("Enable device %p", dev);
	LOG_DBG("Disable device %p", dev);

	return 0;
}