From 36a7d8a2e3b06734e4f9ffe63cdf44e7eedff6be Mon Sep 17 00:00:00 2001 From: Jeppe Odgaard Date: Wed, 7 Feb 2024 18:49:47 +0100 Subject: [PATCH] drivers: sensors: grow_r502a: remove all unused drv_data Fix compile warnings cause by removing drv_data in some functions. Signed-off-by: Jeppe Odgaard --- drivers/sensor/grow_r502a/grow_r502a.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/sensor/grow_r502a/grow_r502a.c b/drivers/sensor/grow_r502a/grow_r502a.c index 7898bb9adb95..028b59194072 100644 --- a/drivers/sensor/grow_r502a/grow_r502a.c +++ b/drivers/sensor/grow_r502a/grow_r502a.c @@ -107,7 +107,6 @@ static void uart_cb_handler(const struct device *dev, void *user_data) static int fps_led_control(const struct device *dev, struct led_params *led_control) { - struct grow_r502a_data *drv_data = dev->data; union r502a_packet rx_packet = {0}; char const led_ctrl_len = 5; @@ -137,7 +136,6 @@ static int fps_led_control(const struct device *dev, struct led_params *led_cont static int fps_verify_password(const struct device *dev) { - struct grow_r502a_data *drv_data = dev->data; union r502a_packet rx_packet = {0}; char const verify_pwd_len = 5; @@ -245,7 +243,6 @@ static int fps_read_template_table(const struct device *dev) static int fps_get_image(const struct device *dev) { - struct grow_r502a_data *drv_data = dev->data; union r502a_packet rx_packet = {0}; char const get_img_len = 1; @@ -284,7 +281,6 @@ static int fps_get_image(const struct device *dev) static int fps_image_to_char(const struct device *dev, uint8_t char_buf_idx) { - struct grow_r502a_data *drv_data = dev->data; union r502a_packet rx_packet = {0}; char const img_to_char_len = 2; @@ -312,7 +308,6 @@ static int fps_image_to_char(const struct device *dev, uint8_t char_buf_idx) static int fps_create_model(const struct device *dev) { - struct grow_r502a_data *drv_data = dev->data; union r502a_packet rx_packet = {0}; char const create_model_len = 1; @@ -340,7 +335,6 @@ static int fps_create_model(const struct device *dev) static int fps_store_model(const struct device *dev, uint16_t id) { - struct grow_r502a_data *drv_data = dev->data; union r502a_packet rx_packet = {0}; char const store_model_len = 4; @@ -380,7 +374,6 @@ static int fps_store_model(const struct device *dev, uint16_t id) static int fps_delete_model(const struct device *dev, uint16_t id, uint16_t count) { - struct grow_r502a_data *drv_data = dev->data; union r502a_packet rx_packet = {0}; char const delete_model_len = 5;