Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4652835rwb; Tue, 20 Sep 2022 17:59:06 -0700 (PDT) X-Google-Smtp-Source: AMsMyM73pve+eqiX8IA7m39xMz4H/upOpyrvef95LTxg+IgVyGfPrW0L+phdCrhWobDPvWD5tbTv X-Received: by 2002:a17:902:f54f:b0:178:a0eb:d7a6 with SMTP id h15-20020a170902f54f00b00178a0ebd7a6mr2372832plf.36.1663721946044; Tue, 20 Sep 2022 17:59:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663721946; cv=none; d=google.com; s=arc-20160816; b=WJbOyWZOXll4fYEYLALDze727BX2OgmKvFCEH6Aa55rDVdAwbtSJzAjQwLCNcmw4UA u0swGim1nOZ2OKyLA03aa6HnW22kPG3aCr3lUD696kIs4V+0XeVsYrp3/wjNq+rH2kYQ h7Od2KE076k/vkOG37bUlkAl+M16i6GIYM3+o0PWSKEUSOIXkURmNXQuIh/K66K2h3kI iga+9aS8TSZITldtoTzyKOPaAm6SSbS3NRpuv1v+QkfJrWy3z4Fa4FY34xxxoZU9OfJD zZlE7vetj+O7dz78Mo5h1/mYiLcwZF8zh8uP0IpYfPQhhVFIq80e5JrFUJN+HjNn01So biEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :feedback-id:references:in-reply-to:message-id:subject:cc:from:to :dkim-signature:date; bh=vsY6bpnDXXQyofo2pcWGC3Wr4RLYUZCP3JxTNYrryxs=; b=xMfOntUlkJHoBQc84TD3kKnO3T+WfdJVWrSkBOJLpcpzcuOR2eUADIoxYqnY4K30d+ 31MzqpmcTQHa4R1XAKbKbJ6wzfi4nmqAN8CaBzoHm5BMYPfemgls4kmqbzrYHvsUfIwU HE1Ng6tsZPGDN7ygxaIEGmNyIn3kRTVfj6zFygJXseaIXhfwvU2vnHh+IXIWwFAuGCEx 3Dgg7SylU69S+a3cxb/qNWlmLbtHXtQsab4WbewJ8j3lY85fXG/HKqWVwiw5nhKxOHFm nynfS9IErCkCdTwLuyPCTl9aLi3Wrtjj3Kitl8i4luYqBKDKdZ1Kq06owjJbY9CjSsik 0D6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=QMBU3DJ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 129-20020a621987000000b0054ac034d8d5si1169727pfz.184.2022.09.20.17.58.53; Tue, 20 Sep 2022 17:59:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@protonmail.com header.s=protonmail3 header.b=QMBU3DJ1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=protonmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231488AbiIUAqe (ORCPT + 99 others); Tue, 20 Sep 2022 20:46:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230527AbiIUAqb (ORCPT ); Tue, 20 Sep 2022 20:46:31 -0400 X-Greylist: delayed 28300 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Tue, 20 Sep 2022 17:46:30 PDT Received: from mail-40137.protonmail.ch (mail-40137.protonmail.ch [185.70.40.137]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C827B796A5 for ; Tue, 20 Sep 2022 17:46:30 -0700 (PDT) Date: Wed, 21 Sep 2022 00:46:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1663721188; x=1663980388; bh=vsY6bpnDXXQyofo2pcWGC3Wr4RLYUZCP3JxTNYrryxs=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=QMBU3DJ1SOrkU6IcvK/HOVXq2wtl3VnQXVUorDWf8Bf1Kk1JXJ1NaQ1FZOhl3gYNh ia32TI9UAeNw+lNcXcTrdmb3oz/XodtNNA4aom17pVjDy8QD9x+MIPDRKsOfK5Wnsw MfO/E2Vndm6/aUlI4MsNkyh8z54lk0HwLe+eNaA5ozkyNBCBMKP6SK0cn3akyBZtdz hLF5G3IehFlrbfiUA3Y6L6MpieIU515+D39yqoU39GiAVO73hBvqZOYDjaqPgtwUA/ UKBlZz/W6CVDQzKnuwPSLhU4bpYmA4shxcijRhfl1jNHRi/pxQR6Un90kSTTgpwrzi FTnYUfnG9DnuQ== To: Daniel Ogorchock From: Johnothan King Cc: "linux-kernel@vger.kernel.org" , "linux-input@vger.kernel.org" , Benjamin Tissoires , Jiri Kosina Subject: Re: [PATCH v2] HID: nintendo: check analog user calibration for plausibility Message-ID: In-Reply-To: References: Feedback-ID: 1750573:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I'll submit a third version that fixes the warning string. I've also made another minor tweak to joycon_use_default_calibration() for the v3 patch. - Johnothan King ------- Original Message ------- On Tuesday, September 20th, 2022 at 3:06 PM, Daniel Ogorchock wrote: > > static const u16 DFLT_STICK_CAL_CEN =3D 2000; > > static const u16 DFLT_STICK_CAL_MAX =3D 3500; > > static const u16 DFLT_STICK_CAL_MIN =3D 500; > > +static void joycon_use_default_calibration(struct joycon_ctlr *ctlr, > > + struct joycon_stick_cal *cal_x, > > + struct joycon_stick_cal *cal_y, > > + const char *stick, int ret) > > +{ > > + hid_warn(ctlr->hdev, > > + "Failed to read %s stick cal, " > > + "using defaults; e=3D%d\n", > > + stick, ret); > > + >=20 >=20 > Sorry, missed this on my first readthrough. I think the coding style > mentions not to break up the logged string into multiple lines, since > it'll harm greppability. >=20 > -Daniel