Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp221655pxv; Thu, 24 Jun 2021 06:35:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwb4xuD8NRlOB9imjl3EOjYAR2fB8QAFniqO7PhFo9tBLT1HDln5u+BHIKlGfm2XNOfZKbj X-Received: by 2002:a05:6402:2898:: with SMTP id eg24mr7140496edb.155.1624541729750; Thu, 24 Jun 2021 06:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624541729; cv=none; d=google.com; s=arc-20160816; b=hZwWAfWDZ4D8vl/do8HecmNjYcKBeoyfeJXR+SxShLnfMhl0M9yIKWhlpRSXIDMAKI IgZj6RT0U5KZvpGnGXQt6+G62L1O09UJWxDsFzt1VHenPXiinA/3Swsm+Hbwjur8stPB MRxyWDm7CMKRzhuna0gsWsfie1CyiTWZz+HK3+OtQpaMEfHQeq1we/8aAVsmlENnHkO3 qY/wrmrqf6NHS7q6oBpQo8+fjuhG5rCMtnh+FhX9UOaxrDSQGTPb7hdP1WoLVFhSMgJ5 x8jZvd03ZmUEc+FL5JplWnkHiPPLTNIsnu2moaRB4PpuhuOk6De9+T7Ysn6yK0IHawwU P0Ag== 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 :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date:dkim-signature; bh=G18n6rXInbvYX/t83WyvHSUDhH7rGFY3oI8geQwGRPA=; b=XSAb05SLj59u0wXqReBNGRlcV5sjTs5b9FaJBwz2gjF5x+D9ySUWCOs5EOijRKmUMs 6tkfclKK3V9CY0EZb5vO/scdmPPu8IX3nVDZnNpx5UBij7CWGpzTm8LqUrlf7j+QEqoO MW6fVlx+0tM2Zo2DJwi3BDokOPwiFgAxEKvys3L87FcHu8TVaQFm1CwLrPPOF5tXWgwL 3XgcpJZQLyBvBRcmLcpkUguyhB/yj+Hi7zqBEqTMQOgXn5rTv7WPOMXoUm0xSR4kFp13 Py1TH/GvIx4xZJ5we2dYSDaf2V/W4NRnW4ViUPN7OvMN9yFldyUImtd+yJqXU0wAMFzs gLnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OpLYG3zy; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j23si3579974eje.21.2021.06.24.06.35.05; Thu, 24 Jun 2021 06:35:29 -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=@kernel.org header.s=k20201202 header.b=OpLYG3zy; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231179AbhFXNgC (ORCPT + 99 others); Thu, 24 Jun 2021 09:36:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:57248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbhFXNgB (ORCPT ); Thu, 24 Jun 2021 09:36:01 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D9FBE60FD9; Thu, 24 Jun 2021 13:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1624541622; bh=O2I69TLhOqa5YCAAvlK2YkSpMRBWz/dmGuYy8PcAUZo=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=OpLYG3zybn8V4R1zfKzmH2mKfSVAh3286XKCokDK8lW1IOFZyzpppT+2v8uAOYdUF 1J2M1TSbj4+TXy4rL+I71aQ9eTISTa+yjsXMwiZV1Yqsgyaqi4PeDiKkvV8tvyXH6y yaXnttJe2FrAuwTRXIkDi6p9NOShUcoldjcHPlDV3HTyJvzQpZS7VsecKhdLdu7KBX mH4cK+CGwaSdjYF319AS+XzHhw8RvZlNgzPbPszm+C8FMD4DZEsvmwXqm8OnUi0Yqb bq2fz+dd1SHyJlX8+3iIWZJoF/OflsVJfA8H/5o1rUQIzltPyhYi0lZSWT/E3/hoJR dvNRJCxNgc1iw== Date: Thu, 24 Jun 2021 15:33:39 +0200 (CEST) From: Jiri Kosina To: =?ISO-8859-15?Q?Jos=E9_Exp=F3sito?= cc: benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/5] HID: magicmouse: register power supply In-Reply-To: <20210522180611.314300-1-jose.exposito89@gmail.com> Message-ID: References: <20210522180611.314300-1-jose.exposito89@gmail.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 22 May 2021, José Expósito wrote: > Unlike the Apple Magic Mouse 1 and the Apple Magic Trackpad 1, the > second generation of the devices don't report their battery status > automatically. > > This patchset adds support for reporting the battery capacity and > charging status for the Apple Magic Mouse 2 and Apple Magic Trackpad > 2 both over bluetooth and USB. > > This patch: > > Register the required power supply structs for the Apple Magic Mouse 2 > and the Apple Magic Trackpad 2 to be able to report battery capacity > and status in future patches. > > Signed-off-by: José Expósito > > --- > > v2: Add depends on USB_HID to Kconfig Hmm, why is this dependency needed in the first place, please? I think trying to keep the drivers independent on transport drivers (especially in cases like this, where more variants of physical transports actually really do exist) is worth trying. Thanks, -- Jiri Kosina SUSE Labs