Skip to content

Commit

Permalink
iio_widget: fix iio_widget_update_value() arg name
Browse files Browse the repository at this point in the history
Change the argument 'ensm' to 'attr_name' as 'ensm' is specific to
plugins like adrv9002. Hence use a generic name.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
  • Loading branch information
nunojsa committed Sep 11, 2024
1 parent 7a5614b commit b97790f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions iio_widget.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,14 +495,14 @@ static gboolean iio_widget_signal_unblock(gpointer arg)
return FALSE;
}

void iio_widget_update_value(struct iio_widget *widget, const char *ensm, size_t len)
void iio_widget_update_value(struct iio_widget *widget, const char *attr_name, size_t len)
{
guint sig = 0;

if (widget->sig_handler_data)
sig = g_signal_handlers_block_matched(G_OBJECT(widget->widget), G_SIGNAL_MATCH_DATA,
0, 0, NULL, NULL, widget->sig_handler_data);
widget->update_value(widget, ensm, len);
widget->update_value(widget, attr_name, len);

if (sig)
g_timeout_add(1, (GSourceFunc)iio_widget_signal_unblock, widget);
Expand Down

0 comments on commit b97790f

Please sign in to comment.