hidbus: Use ReadBufferSpan

This commit is contained in:
ameerj 2022-12-25 14:00:20 -05:00
parent 4531881bfd
commit de252703bd
11 changed files with 16 additions and 12 deletions

View file

@ -1026,7 +1026,7 @@ void Hid::SetSupportedNpadIdType(Kernel::HLERequestContext& ctx) {
const auto applet_resource_user_id{rp.Pop<u64>()};
applet_resource->GetController<Controller_NPad>(HidController::NPad)
.SetSupportedNpadIdTypes(ctx.ReadBufferSpan().data(), ctx.GetReadBufferSize());
.SetSupportedNpadIdTypes(ctx.ReadBufferSpan());
LOG_DEBUG(Service_HID, "called, applet_resource_user_id={}", applet_resource_user_id);