mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +08:00
drivers/power: using baterr/batinfo to avoid frequency log output
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
e26a01d9a6
commit
a005f4bff1
3 changed files with 6 additions and 6 deletions
|
@ -405,7 +405,7 @@ static int bat_charger_ioctl(FAR struct file *filep, int cmd,
|
|||
break;
|
||||
|
||||
default:
|
||||
_err("ERROR: Unrecognized cmd: %d\n", cmd);
|
||||
batinfo("ERROR: Unrecognized cmd: %d\n", cmd);
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
|
@ -529,7 +529,7 @@ int battery_charger_register(FAR const char *devpath,
|
|||
ret = register_driver(devpath, &g_batteryops, 0666, dev);
|
||||
if (ret < 0)
|
||||
{
|
||||
_err("ERROR: Failed to register driver: %d\n", ret);
|
||||
baterr("ERROR: Failed to register driver: %d\n", ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -365,7 +365,7 @@ static int bat_gauge_ioctl(FAR struct file *filep,
|
|||
break;
|
||||
|
||||
default:
|
||||
_err("ERROR: Unrecognized cmd: %d\n", cmd);
|
||||
batinfo("ERROR: Unrecognized cmd: %d\n", cmd);
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
|
@ -489,7 +489,7 @@ int battery_gauge_register(FAR const char *devpath,
|
|||
ret = register_driver(devpath, &g_batteryops, 0666, dev);
|
||||
if (ret < 0)
|
||||
{
|
||||
_err("ERROR: Failed to register driver: %d\n", ret);
|
||||
baterr("ERROR: Failed to register driver: %d\n", ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -434,7 +434,7 @@ static int bat_monitor_ioctl(FAR struct file *filep, int cmd,
|
|||
break;
|
||||
|
||||
default:
|
||||
_err("ERROR: Unrecognized cmd: %d\n", cmd);
|
||||
batinfo("ERROR: Unrecognized cmd: %d\n", cmd);
|
||||
ret = -ENOTTY;
|
||||
break;
|
||||
}
|
||||
|
@ -554,7 +554,7 @@ int battery_monitor_register(FAR const char *devpath,
|
|||
ret = register_driver(devpath, &g_batteryops, 0555, dev);
|
||||
if (ret < 0)
|
||||
{
|
||||
_err("ERROR: Failed to register driver: %d\n", ret);
|
||||
baterr("ERROR: Failed to register driver: %d\n", ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue