Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1612532pxv; Fri, 23 Jul 2021 12:43:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykJRMBuu9uNyzSaSMoFxtWc2R3TGiCU6/Gw9umQdBUjDjMHOwOvEobWaunCgchLVGRr6cV X-Received: by 2002:a92:d451:: with SMTP id r17mr4568497ilm.109.1627069417398; Fri, 23 Jul 2021 12:43:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627069417; cv=none; d=google.com; s=arc-20160816; b=d8P59y8E99LemrVmzKiQnGb31dMYBRyY22KM9yKzVM2eo0iQGjbD4T8cc/W6HwMv6U D6Fi+NMUhsQFiJmW8lTkWDfBRiy9mt9ueEcVM5DADw4NLYKwWU0VdEfipwWetJ8WNvbU WzppusueUqiHgN02ZFN4Weaern1b/BSpy2nv0B7YVHw9yP5d1bkCkEEsgWlht6m9mdNA S6bRBvTys134nBhLF4nN7VelYzIU7En7kJixJUookk7KIcdR/X56uXgzKu5eF2JoSFqX qRikj6APiIiGWYpU2XJdHmSFNHGI/Su6jVv5Kwg6e+wZjri2mDkhqEymRitx+zeM5NUj DD/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:date:references:in-reply-to:cc:to :from:subject:message-id:dkim-signature; bh=bry+1eZRVnUEzKlENXvkkYW0HdVSqEnTfGyi3gC+Noo=; b=yhJv/Xhm8zA21qkPyTYRj6o5pCnkBY52R1xThrbiJw8EfYTLs+pPb9UWoysa/btaCN +iHc0IoH5BX5kjRFyr67tX9jwelQY03ejzQbadiDqIXKGF//OvrkfPbuXZvrbMTZy0Li wH9PF5NKJkrXjJbiO3WNpyIansR5GFj+It6GaEUPcS3adBJQGb7XPC684uNEoHO2DpET TmHH/+eLFh0HlIFev2vTwQv6SESUgUkIO/9Z9zuUNyn9zkJSSUXAM+QNy1fLi4z+MTv4 Pl4gWC2RfozJeF5i+Hr/ZtEZYInu33pPtleu5pVWJqTKFDEqsW5hhyS2x3rlJPaydNFg zG9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=mmQOZEKv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a10si18570328ild.133.2021.07.23.12.43.25; Fri, 23 Jul 2021 12:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b=mmQOZEKv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230314AbhGWTCE (ORCPT + 99 others); Fri, 23 Jul 2021 15:02:04 -0400 Received: from mx1.riseup.net ([198.252.153.129]:42732 "EHLO mx1.riseup.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbhGWTCD (ORCPT ); Fri, 23 Jul 2021 15:02:03 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "Sectigo RSA Domain Validation Secure Server CA" (not verified)) by mx1.riseup.net (Postfix) with ESMTPS id 4GWfqJ4LtFzDsKr; Fri, 23 Jul 2021 12:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1627069356; bh=bry+1eZRVnUEzKlENXvkkYW0HdVSqEnTfGyi3gC+Noo=; h=Subject:From:To:Cc:In-Reply-To:References:Date:From; b=mmQOZEKvrNQ1tv/e7Mjm8JjfSX6831n2NPB25oGqXqLcIGYjiOgBp+ZjfpMZb9Sjc 3p5eHqTd0K/JjmQE9M8DWXZML4LSOkACa6vzCXTX9xb9AvAKdSQytmY12IdH+MNDXl q6W2bAJ8TbN/f9GkQZbJrW1WuHbJxLewfMOBowP4= X-Riseup-User-ID: 135E98824DB159DA90226578C0A663264D1D49184D7DB8426AFE81A158C2C44A Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4GWfqH0cg1z5vYk; Fri, 23 Jul 2021 12:42:34 -0700 (PDT) Message-ID: Subject: Re: [PATCH v3] HID: logitech-hidpp: battery: provide CAPACITY property for newer devices From: Filipe =?ISO-8859-1?Q?La=EDns?= To: Hamza Mahfooz , linux-kernel@vger.kernel.org Cc: Bastien Nocera , Jiri Kosina , Benjamin Tissoires , linux-input@vger.kernel.org In-Reply-To: <20210723185720.29314-1-someguy@effective-light.com> References: <20210723185720.29314-1-someguy@effective-light.com> Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="=-b8XC2m1TtxqaXCjG1IfU" Date: Fri, 23 Jul 2021 20:42:32 +0100 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-b8XC2m1TtxqaXCjG1IfU Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 T24gRnJpLCAyMDIxLTA3LTIzIGF0IDE0OjU3IC0wNDAwLCBIYW16YSBNYWhmb296IHdyb3RlOgo+ IEZvciBkZXZpY2VzIHRoYXQgb25seSBzdXBwb3J0IHRoZSBCQVRURVJZX1ZPTFRBR0UgKDB4MTAw MSkgZmVhdHVyZSwgVVBvd2VyCj4gcmVxdWlyZXMgdGhlIGFkZGl0aW9uYWwgaW5mb3JtYXRpb24g cHJvdmlkZWQgYnkgdGhpcyBwYXR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ZGV2aWNlCj4gKmhpZHBwKQo+IMKgwqDCoMKg wqDCoMKgwqBudW1fYmF0dGVyeV9wcm9wcyA9IEFSUkFZX1NJWkUoaGlkcHBfYmF0dGVyeV9wcm9w cykgLSAzOwo+IMKgCj4gwqDCoMKgwqDCoMKgwqDCoGlmIChoaWRwcC0+Y2FwYWJpbGl0aWVzICYg SElEUFBfQ0FQQUJJTElUWV9CQVRURVJZX01JTEVBR0UgfHwKPiAtwqDCoMKgwqDCoMKgwqDCoMKg wqAgaGlkcHAtPmNhcGFiaWxpdGllcyAmIEhJRFBQX0NBUEFCSUxJVFlfQkFUVEVSWV9QRVJDRU5U QUdFKQo+ICvCoMKgwqDCoMKgwqDCoMKgwqDCoCBoaWRwcC0+Y2FwYWJpbGl0aWVzICYgSElEUFBf Q0FQQUJJTElUWV9CQVRURVJZX1BFUkNFTlRBR0UgfHwKPiArwqDCoMKgwqDCoMKgwqDCoMKgwqAg aGlkcHAtPmNhcGFiaWxpdGllcyAmIEhJRFBQX0NBUEFCSUxJVFlfQkFUVEVSWV9WT0xUQUdFKQo+ IMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgYmF0dGVyeV9wcm9wc1tudW1fYmF0dGVy eV9wcm9wcysrXSA9Cj4gwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKgwqDCoMKg wqDCoMKgwqDCoMKgwqDCoMKgwqDCoFBPV0VSX1NVUFBMWV9QUk9QX0NBUEFDSVRZOwo+IMKgCg== --=-b8XC2m1TtxqaXCjG1IfU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0jW0leqs33gyftiw+JPGdIFqqV0FAmD7G6MACgkQ+JPGdIFq qV3P3RAAhqubscc5WlIXI6fPKnXq/2nPritUBbmlh5yBHAeVlmkHnDT52WAlLHzt 4POujGk+o81XjWO0l6VPOH5x8yrRqYIfTl7tRZDkR688FoAAj3bh+FiZNO68S1Yu 6V9kZEH3DTM7G++niBEkVvbDl9eujsuY+Km9QU0nCwPS6tPoFIsQAHEx/jZJFV71 8xvbFAxg2dxvLubPXRFRVQOW+tQudxOrmxLjai7wgHDgVEPQRfgjgbPcSCv0s868 eYYiIUHkBp0YT54IBP5Xu/OGyquMBrZ/jNiT98uKDpP9uc2fr7h2a/uEv6282Cwi /PdqvWSYhV2fTAtxH/37u+xHQj/bVm4H9829OUFvqDeUYb1oBkNBq7ihV6CTJfFi qCpSW6XR+uYnlGefpKO4xByOGGAov0El0dOyVNdcexM1N+0EUduDipWln2USo6+F iEuxtIRNqFkZcgFpyeUAnUugWkTzgpVrBsu3R0MyDUtWuyMIALEJRwMXJJRjShcK rPwqYJVLi+bcAoE5ZrOUKNftdsK1DfvjPMOaMhFc9Ex2rzBM18suNl18CtJr0q/0 c/Yy3p6bg4TuGxK37AES0vX1jml1S5+fvApibq5lMgduvq/jvNEQ8m5LDUD+FjlK rbbmCdHlLJYZvnPMV9hcm6hQ611J4UOkaTSgn3/8S5vXeJDhqPo= =JBTg -----END PGP SIGNATURE----- --=-b8XC2m1TtxqaXCjG1IfU--