Skip to content

Commit

Permalink
drivers: sensors: grow_r502a: remove all unused drv_data
Browse files Browse the repository at this point in the history
Fix compile warnings cause by removing drv_data in some functions.

Signed-off-by: Jeppe Odgaard <[email protected]>
  • Loading branch information
Jeppe Odgaard authored and nashif committed Mar 26, 2024
1 parent 69e1d86 commit d1d6938
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/sensor/grow_r502a/grow_r502a.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit d1d6938

Please sign in to comment.