forked from drath/libratbag
hidpp20drv: rename the internal per feature read_button
Allows to navigate in the source more easily if they share a common name. However, this is still not good because we need to know which feature number is which. Though the format is now in sync with write_button. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
@@ -64,7 +64,7 @@ struct hidpp20drv_data {
|
||||
};
|
||||
|
||||
static void
|
||||
hidpp20drv_button_key_1b04_read_button(struct ratbag_button *button)
|
||||
hidpp20drv_read_button_1b04(struct ratbag_button *button)
|
||||
{
|
||||
struct ratbag_device *device = button->profile->device;
|
||||
struct hidpp20drv_data *drv_data = ratbag_get_drv_data(device);
|
||||
@@ -97,7 +97,7 @@ hidpp20drv_button_key_1b04_read_button(struct ratbag_button *button)
|
||||
}
|
||||
|
||||
static void
|
||||
hidpp20drv_onboard_profile_8100_read_button(struct ratbag_button *button)
|
||||
hidpp20drv_read_button_8100(struct ratbag_button *button)
|
||||
{
|
||||
struct ratbag_device *device = button->profile->device;
|
||||
struct hidpp20drv_data *drv_data = ratbag_get_drv_data(device);
|
||||
@@ -135,8 +135,8 @@ hidpp20drv_onboard_profile_8100_read_button(struct ratbag_button *button)
|
||||
static void
|
||||
hidpp20drv_read_button(struct ratbag_button *button)
|
||||
{
|
||||
hidpp20drv_button_key_1b04_read_button(button);
|
||||
hidpp20drv_onboard_profile_8100_read_button(button);
|
||||
hidpp20drv_read_button_1b04(button);
|
||||
hidpp20drv_read_button_8100(button);
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
Reference in New Issue
Block a user