From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12B93C433E0 for ; Thu, 7 Jan 2021 20:49:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DA94F2343B for ; Thu, 7 Jan 2021 20:49:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727214AbhAGUt1 (ORCPT ); Thu, 7 Jan 2021 15:49:27 -0500 Received: from mail-40136.protonmail.ch ([185.70.40.136]:39119 "EHLO mail-40136.protonmail.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbhAGUt1 (ORCPT ); Thu, 7 Jan 2021 15:49:27 -0500 Date: Thu, 07 Jan 2021 20:48:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1610052525; bh=RMHkcHyaeFtGTXW0tykZgL+J84Ua66GbA+UJU9FeKsI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=b7Ki0l+lJiMVJmfi8j05mkbIqUVcKSLBmI8lkrdUTmekAYGR07ZMy7qAQ9qZyycta hTQFY6UW8PvZ7Rx1LcQkuw5qNSs4jrQtV2Tbd/e7uklRXHPYj1475mL+lJQ1ROtS1o PWmBu4RZL5+fdt2PklMaBOICDWoe9XLt2vnPIFdM= To: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= From: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Cc: Roderick Colenbrander , Jiri Kosina , Benjamin Tissoires , "linux-input@vger.kernel.org" , Chris Ye , Roderick Colenbrander Reply-To: =?utf-8?Q?Barnab=C3=A1s_P=C5=91cze?= Subject: Re: [PATCH v2 08/13] HID: playstation: add DualSense classic rumble support. Message-ID: In-Reply-To: References: <20210102223109.996781-1-roderick@gaikai.com> <20210102223109.996781-9-roderick@gaikai.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 2021. janu=C3=A1r 7., cs=C3=BCt=C3=B6rt=C3=B6k 21:41 keltez=C3=A9ssel, Barn= ab=C3=A1s P=C5=91cze =C3=ADrta: > [...] > > +struct dualsense_output_report { > > +=09uint8_t *data; /* Start of data */ > > +=09uint8_t len; /* Size of output report */ > > + > > +=09/* Points to Bluetooth data payload in case for a Bluetooth report = else NULL. */ > > +=09struct dualsense_output_report_bt *bt; > > +=09/* Points to USB data payload in case for a USB report else NULL. *= / > > +=09struct dualsense_output_report_usb *usb; > > +=09/* Points to common section of report, so past any headers */ > > +=09struct dualsense_output_report_common *common; > > +}; > > [...] > > +static void dualsense_init_output_report(struct dualsense *ds, struct = dualsense_output_report *rp, > > +=09=09void *buf) > > If the dualsense struct is already passed in, couldn't this function use > `ds->output_report_dmabuf` directly? > [...] Never mind, sorry, the next patch answered this question.