mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 15:14:38 +01:00
fixup! sinowealth: read profile count from the device file
This commit is contained in:
@@ -1631,8 +1631,8 @@ sinowealth_init_profile(struct ratbag_device *device)
|
||||
log_error(device->ratbag,
|
||||
"Device file for firmware version %s specifies incorrect profile count: %d"
|
||||
" (should be in range %d-%d)\n",
|
||||
fw_version,
|
||||
rc, 1, SINOWEALTH_NUM_PROFILES_MAX);
|
||||
fw_version, rc,
|
||||
1, SINOWEALTH_NUM_PROFILES_MAX);
|
||||
return -EINVAL;
|
||||
} else {
|
||||
drv_data->profile_count = (unsigned int)rc;
|
||||
|
||||
Reference in New Issue
Block a user