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 <jeppe.odgaard@prevas.dk>
This commit is contained in:
Jeppe Odgaard 2024-02-07 18:49:47 +01:00 committed by Anas Nashif
commit d1d6938a16

View file

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