1.路径优化。
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* @date 2023-10-20 MacRsh First version
|
||||
*/
|
||||
|
||||
#include "include/device/serial.h"
|
||||
#include "serial.h"
|
||||
|
||||
#ifdef MR_USING_SERIAL
|
||||
|
||||
@@ -88,7 +88,7 @@ static int mr_serial_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
|
||||
|
||||
switch (cmd)
|
||||
{
|
||||
case MR_CTRL_SET_CONFIG:
|
||||
case MR_CTL_SET_CONFIG:
|
||||
{
|
||||
if (args != MR_NULL)
|
||||
{
|
||||
@@ -103,7 +103,7 @@ static int mr_serial_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
|
||||
}
|
||||
return MR_EINVAL;
|
||||
}
|
||||
case MR_CTRL_SET_RD_BUFSZ:
|
||||
case MR_CTL_SET_RD_BUFSZ:
|
||||
{
|
||||
if (args != MR_NULL)
|
||||
{
|
||||
@@ -119,7 +119,7 @@ static int mr_serial_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
|
||||
}
|
||||
return MR_EINVAL;
|
||||
}
|
||||
case MR_CTRL_SET_WR_BUFSZ:
|
||||
case MR_CTL_SET_WR_BUFSZ:
|
||||
{
|
||||
if (args != MR_NULL)
|
||||
{
|
||||
@@ -136,7 +136,7 @@ static int mr_serial_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
|
||||
return MR_EINVAL;
|
||||
}
|
||||
|
||||
case MR_CTRL_GET_CONFIG:
|
||||
case MR_CTL_GET_CONFIG:
|
||||
{
|
||||
if (args != MR_NULL)
|
||||
{
|
||||
@@ -147,7 +147,7 @@ static int mr_serial_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
|
||||
}
|
||||
return MR_EINVAL;
|
||||
}
|
||||
case MR_CTRL_GET_RD_BUFSZ:
|
||||
case MR_CTL_GET_RD_BUFSZ:
|
||||
{
|
||||
if (args != MR_NULL)
|
||||
{
|
||||
@@ -156,7 +156,7 @@ static int mr_serial_ioctl(struct mr_dev *dev, int off, int cmd, void *args)
|
||||
}
|
||||
return MR_EINVAL;
|
||||
}
|
||||
case MR_CTRL_GET_WR_BUFSZ:
|
||||
case MR_CTL_GET_WR_BUFSZ:
|
||||
{
|
||||
if (args != MR_NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user