From abe3244f6b0a4ae803656bd04bd3506ab692bbdc Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 26 Aug 2015 13:47:37 +1000 Subject: [PATCH] ratbag_create_button doesn't need a device argument Signed-off-by: Peter Hutterer --- src/libratbag.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libratbag.c b/src/libratbag.c index cfda128c..8a67f641 100644 --- a/src/libratbag.c +++ b/src/libratbag.c @@ -667,9 +667,9 @@ ratbag_profile_get_report_rate_hz(const struct ratbag_profile *profile) } static struct ratbag_button * -ratbag_create_button(struct ratbag_device *device, struct ratbag_profile *profile, - unsigned int index) +ratbag_create_button(struct ratbag_profile *profile, unsigned int index) { + struct ratbag_device *device = profile->device; struct ratbag_button *button; button = zalloc(sizeof(*button)); @@ -703,7 +703,7 @@ ratbag_profile_get_button_by_index(struct ratbag_profile *profile, } } - return ratbag_create_button(profile->device, profile, index); + return ratbag_create_button(profile, index); } LIBRATBAG_EXPORT enum ratbag_button_type