battery:fix poll return type
Signed-off-by: dulibo1 <dulibo1@xiaomi.com>
This commit is contained in:
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;
|
||||
|
@ -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);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user