This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit bca1ce320aea7e396182e15394c9ffa342ae25f9 Author: pengyiqiang <[email protected]> AuthorDate: Mon Nov 9 21:00:26 2026 +0800 drivers/video/mipidsi: Fix nxstyle errors Add the blank lines required after declarations in mipi_dsi_device_driver.c and fix the indentation of the MIPIDSI_TRANSFER case in mipi_dsi_host_driver.c. Signed-off-by: pengyiqiang <[email protected]> --- drivers/video/mipidsi/mipi_dsi_device_driver.c | 5 +++++ drivers/video/mipidsi/mipi_dsi_host_driver.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/video/mipidsi/mipi_dsi_device_driver.c b/drivers/video/mipidsi/mipi_dsi_device_driver.c index 06160ca4eca..626701dd7b0 100644 --- a/drivers/video/mipidsi/mipi_dsi_device_driver.c +++ b/drivers/video/mipidsi/mipi_dsi_device_driver.c @@ -134,6 +134,7 @@ static int dsi_dev_ioctl(FAR struct file *filep, int cmd, unsigned long arg) case MIPIDSI_GETDEVLANES: { FAR uint16_t *planes = (FAR uint16_t *)((uintptr_t)arg); + DEBUGASSERT(planes != NULL); *planes = priv->dsi_dev->lanes; @@ -142,6 +143,7 @@ static int dsi_dev_ioctl(FAR struct file *filep, int cmd, unsigned long arg) case MIPIDSI_GETDEVFMT: { FAR uint32_t *fmt = (FAR uint32_t *)((uintptr_t)arg); + DEBUGASSERT(fmt != NULL); *fmt = priv->dsi_dev->format; @@ -150,6 +152,7 @@ static int dsi_dev_ioctl(FAR struct file *filep, int cmd, unsigned long arg) case MIPIDSI_GETDEVMODE: { FAR uint32_t *mode = (FAR uint32_t *)((uintptr_t)arg); + DEBUGASSERT(mode != NULL); *mode = priv->dsi_dev->mode_flags; @@ -158,6 +161,7 @@ static int dsi_dev_ioctl(FAR struct file *filep, int cmd, unsigned long arg) case MIPIDSI_GETDEVHSRATE: { FAR uint32_t *hsrate = (FAR uint32_t *)((uintptr_t)arg); + DEBUGASSERT(hsrate != NULL); *hsrate = priv->dsi_dev->hs_rate; @@ -166,6 +170,7 @@ static int dsi_dev_ioctl(FAR struct file *filep, int cmd, unsigned long arg) case MIPIDSI_GETDEVLPRATE: { FAR uint32_t *lprate = (FAR uint32_t *)((uintptr_t)arg); + DEBUGASSERT(lprate != NULL); *lprate = priv->dsi_dev->lp_rate; diff --git a/drivers/video/mipidsi/mipi_dsi_host_driver.c b/drivers/video/mipidsi/mipi_dsi_host_driver.c index 6b2c0004c99..33f9082f57e 100644 --- a/drivers/video/mipidsi/mipi_dsi_host_driver.c +++ b/drivers/video/mipidsi/mipi_dsi_host_driver.c @@ -137,16 +137,16 @@ static int dsi_host_ioctl(FAR struct file *filep, int cmd, unsigned long arg) { case MIPIDSI_TRANSFER: - /* Get the reference to the mipi_dsi_msg structure */ + /* Get the reference to the mipi_dsi_msg structure */ - msg = (FAR struct mipi_dsi_msg *)((uintptr_t)arg); + msg = (FAR struct mipi_dsi_msg *)((uintptr_t)arg); - /* Get the reference to the mipi_dsi_host structure */ + /* Get the reference to the mipi_dsi_host structure */ - host = priv->host; - DEBUGASSERT(host != NULL && msg != NULL); + host = priv->host; + DEBUGASSERT(host != NULL && msg != NULL); - ret = host->ops->transfer(host, msg); + ret = host->ops->transfer(host, msg); break; default: ret = -ENOTTY;
