mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
battery:fix poll return type
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
ffa084f3d2
commit
7ccdb2cfa8
@@ -415,8 +415,8 @@ static int bat_charger_ioctl(FAR struct file *filep, int cmd,
|
||||
* Name: bat_charger_poll
|
||||
****************************************************************************/
|
||||
|
||||
static ssize_t bat_charger_poll(FAR struct file *filep,
|
||||
struct pollfd *fds, bool setup)
|
||||
static int bat_charger_poll(FAR struct file *filep,
|
||||
FAR struct pollfd *fds, bool setup)
|
||||
{
|
||||
FAR struct battery_charger_priv_s *priv = filep->f_priv;
|
||||
int ret;
|
||||
|
||||
@@ -373,8 +373,8 @@ static int bat_gauge_ioctl(FAR struct file *filep,
|
||||
* Name: bat_gauge_poll
|
||||
****************************************************************************/
|
||||
|
||||
static ssize_t bat_gauge_poll(FAR struct file *filep,
|
||||
struct pollfd *fds, bool setup)
|
||||
static int bat_gauge_poll(FAR struct file *filep,
|
||||
FAR struct pollfd *fds, bool setup)
|
||||
{
|
||||
FAR struct battery_gauge_priv_s *priv = filep->f_priv;
|
||||
int ret;
|
||||
|
||||
@@ -452,8 +452,8 @@ static int bat_monitor_ioctl(FAR struct file *filep, int cmd,
|
||||
* Name: bat_monitor_poll
|
||||
****************************************************************************/
|
||||
|
||||
static ssize_t bat_monitor_poll(FAR struct file *filep,
|
||||
struct pollfd *fds, bool setup)
|
||||
static int bat_monitor_poll(FAR struct file *filep,
|
||||
FAR struct pollfd *fds, bool setup)
|
||||
{
|
||||
FAR struct battery_monitor_priv_s *priv = filep->f_priv;
|
||||
int ret;
|
||||
|
||||
Reference in New Issue
Block a user