hidpp20: change hidpp20_onboard_profiles_read_memory API

It looks like we can not use a section > 0xff and that the first
parameter corresponds to the type of the available memory (rom or flash).

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Benjamin Tissoires
2015-10-20 17:32:56 -04:00
parent d3abebf202
commit 21d22bf74e
2 changed files with 8 additions and 1 deletions

View File

@@ -933,7 +933,7 @@ int hidpp20_adjustable_dpi_set_sensor_dpi(struct hidpp20_device *device,
#define HIDPP20_PROFILE_SIZE (15*16)
#define HIDPP20_BUTTON_HID 0x80
static int
int
hidpp20_onboard_profiles_read_memory(struct hidpp20_device *device,
uint8_t read_rom,
uint8_t page,

View File

@@ -322,6 +322,13 @@ int hidpp20_onboard_profiles_read(struct hidpp20_device *device,
enum ratbag_button_action_special
hidpp20_onboard_profiles_get_special(uint8_t code);
int
hidpp20_onboard_profiles_read_memory(struct hidpp20_device *device,
uint8_t read_rom,
uint8_t page,
uint8_t section,
uint8_t result[16]);
/* -------------------------------------------------------------------------- */
/* 0x8110 - Mouse Button Spy */
/* -------------------------------------------------------------------------- */