From 7f62e315c6a2febdbc694f3d0bb5cb31880fdb84 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Thu, 24 Aug 2023 20:46:44 -0300 Subject: [PATCH] bh1750fvi: Fix compilation error Error: sensors/bh1750fvi.c:73:16: error: unused function 'bh1750fvi_open' [-Werror,-Wunused-function] static int bh1750fvi_open(FAR struct file *filep); ^ Error: sensors/bh1750fvi.c:74:16: error: unused function 'bh1750fvi_close' [-Werror,-Wunused-function] static int bh1750fvi_close(FAR struct file *filep); --- drivers/sensors/bh1750fvi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/sensors/bh1750fvi.c b/drivers/sensors/bh1750fvi.c index 5b0666f5c6..439cbad9a9 100644 --- a/drivers/sensors/bh1750fvi.c +++ b/drivers/sensors/bh1750fvi.c @@ -70,8 +70,6 @@ static int bh1750fvi_write8(FAR struct bh1750fvi_dev_s *priv, /* Character driver methods */ -static int bh1750fvi_open(FAR struct file *filep); -static int bh1750fvi_close(FAR struct file *filep); static ssize_t bh1750fvi_read(FAR struct file *filep, FAR char *buffer, size_t buflen); static ssize_t bh1750fvi_write(FAR struct file *filep,