From patchwork Fri Apr 28 16:25:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gerecke, Jason" X-Patchwork-Id: 9705089 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5C8F8602BE for ; Fri, 28 Apr 2017 16:25:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4F0DD2866A for ; Fri, 28 Apr 2017 16:25:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 434112866F; Fri, 28 Apr 2017 16:25:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 021802866A for ; Fri, 28 Apr 2017 16:25:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756804AbdD1QZ6 (ORCPT ); Fri, 28 Apr 2017 12:25:58 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:35729 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756801AbdD1QZ5 (ORCPT ); Fri, 28 Apr 2017 12:25:57 -0400 Received: by mail-qt0-f196.google.com with SMTP id o36so9062077qtb.2 for ; Fri, 28 Apr 2017 09:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c7iJz3KB8+cI5VBYXtUkDq0E0fy1z9KR4Ik+2b34x1I=; b=SvrL1praVs1vS/4fJyrAWnaIUflv0ZgcDttHVklGu+WyCRB6nisyxwYVC3LLo4BGC+ 48KogGp7eIPmFm26iE3oVxygkh30p7555N/XTRuKcR9gQES+K/tD2+9vcPn6PQ6Bjw+P nARbhS5gZdCn90/PjnW4nNU7CEp9IGA+Q03vhIJd/EgvM6wT8LY/qYoX7Kq2U9AuEdCG sbzYGu5dmyrF7jjD07qWimmrJwwahOqLIr0oa6oBp33lc8bqs5f/cPyAUgTvKRPwtTU3 kUeIMDdCwIh1ihGf1c3BupBwLoZ0lStW+xw4tNjU+3mwE2I26wu8WylQj9VZbUONc13q oJSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c7iJz3KB8+cI5VBYXtUkDq0E0fy1z9KR4Ik+2b34x1I=; b=LBb3Ha928o5rs03O/oHem8+iph4OTlbONSdWpu/mROz9TTuKZiYlQFUKCyc37XnhD5 47AjPOOJudVWNEvodm+9USObv5pAbYAEjnM70kcRO0m0r90DtukBBYO9cJAON0A/7QJk uRoAW6Di+jzkS2afDl+amVRMfNz5+65v5M5fkk+ijd72jWmuftbd5mUdSuXaq35t9wQ0 00cGTSvd4SnyiioagUinziGPZWfyf84lf8nxIepTBAwZxjQp2pRxoxLIg53pPUoNQQB5 pFBVgrtPg0roV2A2XaQLUv/JmvI8sAV3xVn1TtJFaro5/OK3ky7wdztPgq3pyJNjmt7J A8hg== X-Gm-Message-State: AN3rC/5K8ZBHyGOlnKLdBTLUNt7GzF4VOMcmYN6Y3/k0au7S1PtfwNMv 7BFelf8luZFQandEYUk= X-Received: by 10.237.59.8 with SMTP id p8mr10802325qte.270.1493396756535; Fri, 28 Apr 2017 09:25:56 -0700 (PDT) Received: from wacom-arch2.corp.onewacom.com ([50.225.60.4]) by smtp.gmail.com with ESMTPSA id a76sm2688288qkj.42.2017.04.28.09.25.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Apr 2017 09:25:56 -0700 (PDT) From: Jason Gerecke To: linux-input@vger.kernel.org Cc: Jiri Kosina , Benjamin Tissoires , Ping Cheng , Aaron Skomra , Jason Gerecke , Jason Gerecke Subject: [PATCH 3/5] HID: wacom: generic: Report AES battery information Date: Fri, 28 Apr 2017 09:25:32 -0700 Message-Id: <20170428162534.3051-3-killertofu@gmail.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170428162534.3051-1-killertofu@gmail.com> References: <20170428162534.3051-1-killertofu@gmail.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When support for the HID_DG_BATTERYSTRENGTH usage was added for AES devices, it appears that the value was read, but never actually forwarded to the power_supply subystem for userspace's benefit. Let's correct that. Signed-off-by: Jason Gerecke --- drivers/hid/wacom_wac.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/hid/wacom_wac.c b/drivers/hid/wacom_wac.c index c3f8fe152e48..11aa28e0a36e 100644 --- a/drivers/hid/wacom_wac.c +++ b/drivers/hid/wacom_wac.c @@ -2175,6 +2175,8 @@ static void wacom_wac_pen_report(struct hid_device *hdev, input_sync(input); } + wacom_wac_pad_battery_report(hdev, report); + if (!prox) { wacom_wac->tool[0] = 0; wacom_wac->id[0] = 0;