mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-04-22 23:20:43 +02:00
pad: rename an argument for more clarity
Yes, we're using the LED count here but what it is used for is the number of modes. Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1070>
This commit is contained in:
parent
9ae514c7b4
commit
c969b5f6e2
1 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ pad_led_group_destroy(struct libinput_tablet_pad_mode_group *g)
|
|||
static struct pad_led_group *
|
||||
pad_group_new_basic(struct pad_dispatch *pad,
|
||||
unsigned int group_index,
|
||||
int nleds)
|
||||
int num_modes)
|
||||
{
|
||||
struct pad_led_group *group;
|
||||
|
||||
|
|
@ -166,7 +166,7 @@ pad_group_new_basic(struct pad_dispatch *pad,
|
|||
group->base.refcount = 1;
|
||||
group->base.index = group_index;
|
||||
group->base.current_mode = 0;
|
||||
group->base.num_modes = nleds;
|
||||
group->base.num_modes = num_modes;
|
||||
group->base.destroy = pad_led_group_destroy;
|
||||
list_init(&group->toggle_button_list);
|
||||
list_init(&group->led_list);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue