battery:fix poll return type

Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
This commit is contained in:
dulibo1 2023-07-12 18:20:16 +08:00 committed by Alan Carvalho de Assis
parent ffa084f3d2
commit 7ccdb2cfa8
4 changed files with 7 additions and 7 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -296,7 +296,7 @@ struct battery_monitor_operations_s
/* Get chip id */
CODE int (*chipid)(FAR struct battery_charger_dev_s *dev,
CODE int (*chipid)(FAR struct battery_monitor_dev_s *dev,
FAR unsigned int *value);
};