From e514da8218efc8e5930c66059e4826665ea49109 Mon Sep 17 00:00:00 2001 From: Benjamin Tissoires Date: Tue, 15 Sep 2015 11:06:22 -0400 Subject: [PATCH] drv interface: make the commit to the device mandatory When writing a button, the given button should also be stored in the memory of the device. Amend the documentation Signed-off-by: Benjamin Tissoires --- src/libratbag-private.h | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/libratbag-private.h b/src/libratbag-private.h index 27ffa7cc..94cd0de2 100644 --- a/src/libratbag-private.h +++ b/src/libratbag-private.h @@ -174,16 +174,8 @@ struct ratbag_driver { void (*read_button)(struct ratbag_button *button); /** - * For the given button, store in the profile or in the device + * For the given button, store in the profile and in the device * the given struct ratbag_button. - * - * For devices with profiles, profile will not be NULL. For - * device without, profile will be set to NULL. - * - * For devices with profile, there should not be the need to - * actually write the button to the device. The caller - * should later on write the profile in one call to - * .write_profile(). */ int (*write_button)(struct ratbag_button *button, const struct ratbag_button_action *action);