Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp4522262rwb; Tue, 20 Sep 2022 15:31:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6rnX5cUZK7yG+S1yLI9mFBMA9wL5gCDrP90gveRrB4wRWDGNLV0VF0jl0Mrw4yhANOmSHB X-Received: by 2002:a17:907:97c2:b0:780:6a13:53 with SMTP id js2-20020a17090797c200b007806a130053mr18850956ejc.187.1663713102450; Tue, 20 Sep 2022 15:31:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663713102; cv=none; d=google.com; s=arc-20160816; b=atftyTHPaEZvtA9anfL2E2IoEV5lHoqIm5+kF4jyqGoCNkPQPeV96c8UPNePzkGB3V qpIMgSXVQrelKAvAC3ie8Pb0mtZ53Cb9zrh1AHAoXAA+xp/WtDqwWbVikPbJxSv8hCUn XDKVhIl6wSOXIRNQ1HY/q6vltpnmVCiBsO7rvHu+rGXmQYbD1pyODVPp7gN5jNrVyPTZ m4iQvKOptWD+27SpjePmXnjH9oUMe9AWFXLs0zVmC4Org7Snd7ucJXoGAGrNm0gLCmvW 9If8YS4SRGzVVAFb08MCaVqHLOj6swpLM366AuurT/7aNjw8hoTA/kuzxXTs03GH8Om6 OPqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=a9ubx309RX1ylp0ri8FQHRE+Ot7n/V281h2L8ls5In4=; b=BXDWyX4hLuYdFVOzGZFRlOKpw+uR4bF8wCK3ig0k7aDmv0T39JNY3efb9a6x346eUH jIWn/qJG/SzZUGwejaYqlFK5nq7mFQ2fI5RmShXBSOpvij3/bG1JeBFPMRl2EVjGnR8V Q43MPPGCWAXkU5zhv5iR2LogXXj/MFoxX8iUcF16vF+XhxLPzRRa2UauUs8KWcb5aq4F 8k5CRODkm53OzP2aiFGZ0ES1pqtye7VlR38q70QLrQIi2X5LH9m88sE68/O3xU5jenNG iM8DumWC4yFgC8vPWxE3jMT5hUZQFlsXgxpwpgPvX85peZNl5/zTSKH838M+Ql9LIiM9 zbEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=f6MmcYOw; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a056402270e00b0044e69ba81e1si1163818edd.168.2022.09.20.15.31.16; Tue, 20 Sep 2022 15:31:42 -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=@gmail.com header.s=20210112 header.b=f6MmcYOw; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230345AbiITWG6 (ORCPT + 99 others); Tue, 20 Sep 2022 18:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbiITWGn (ORCPT ); Tue, 20 Sep 2022 18:06:43 -0400 Received: from mail-lj1-x230.google.com (mail-lj1-x230.google.com [IPv6:2a00:1450:4864:20::230]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C7D57823A; Tue, 20 Sep 2022 15:06:41 -0700 (PDT) Received: by mail-lj1-x230.google.com with SMTP id z20so4786147ljq.3; Tue, 20 Sep 2022 15:06:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=a9ubx309RX1ylp0ri8FQHRE+Ot7n/V281h2L8ls5In4=; b=f6MmcYOwAYsrIA5CL3o7P41f5aLRTH3qjADB1yb7j69cDZOf4IplgaPTFMVeO7Mj0/ nmM3sO706SHqBIEA/JUwXaQGg3GAlG4vtk0glFNDNKPIJdtYw2IXRyGTcCtes0wV5rIJ E/+0HYA5dq9kFbprP6wMtKk4+v1HOybv3VCipl0Yt9F83jVgv96qhPRqS+lWK0zTa+W7 p9hUpKLdG5tl+4y3UGVa3wsZxOtZdSvUpF+VOZX4WdJwNkbIf96oHl7C6EGGTIsaYV+p d6R2uUI5JyT+tPjhyvIZiKQHZXydSo8kH8IZpYZ4RlMTl2vCMiufIo5ZVZqRILO/FTQm bnDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=a9ubx309RX1ylp0ri8FQHRE+Ot7n/V281h2L8ls5In4=; b=nAaMZZ8tb3KMwaEVvvpq204QMEdN7ieCqvgc8DQbYFrUycFUnAvkqXUMHNPsaZbmJq c5TW5+qSroBYvC9GK2+mEFM4h0kbXUjPrd4thx0FVInsvHZiTVBp3LU//wUZ95ztpRIM Tlp2w/S6Qwy0bqYfKLh5T4fh6y3s1S8tWQMHMQ+FIWU2W0lzsFUfF5ywOidFdmB91fsZ uQ+ylf3YJssE+LWO11A/r6LSv+Z79SC8Yk3UloT7XJTl3sbyaF3Q0cQ77fooLD3evgg5 SR8C5T3sFecucalHhpOEBmq8HGnH+8LDGgdi9Tr5pyaRcxfZADN3lOqvSG0zcW9ecDdG bMNA== X-Gm-Message-State: ACrzQf1F7moYNk3JoH1kGcYY1DVQLUYmxnT4oux+BQqcpXAkqJgvBvTt LPKuKsn8wuIPUaaZkNMdeOeZerbTlioEWk1/Oxo= X-Received: by 2002:a2e:828d:0:b0:26b:e531:c64d with SMTP id y13-20020a2e828d000000b0026be531c64dmr8023960ljg.355.1663711599391; Tue, 20 Sep 2022 15:06:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Ogorchock Date: Tue, 20 Sep 2022 18:06:27 -0400 Message-ID: Subject: Re: [PATCH v2] HID: nintendo: check analog user calibration for plausibility To: Johnothan King Cc: "linux-kernel@vger.kernel.org" , "linux-input@vger.kernel.org" , Benjamin Tissoires , Jiri Kosina Content-Type: text/plain; charset="UTF-8" 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, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 > static const u16 DFLT_STICK_CAL_CEN = 2000; > static const u16 DFLT_STICK_CAL_MAX = 3500; > static const u16 DFLT_STICK_CAL_MIN = 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=%d\n", > + stick, ret); > + 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. -Daniel