From patchwork Tue Dec 9 12:28:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Nicoletti X-Patchwork-Id: 5462421 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 54133BEEA8 for ; Tue, 9 Dec 2014 12:29:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5DEEE20160 for ; Tue, 9 Dec 2014 12:29:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7D8CA2015A for ; Tue, 9 Dec 2014 12:29:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756821AbaLIM33 (ORCPT ); Tue, 9 Dec 2014 07:29:29 -0500 Received: from mail-qc0-f173.google.com ([209.85.216.173]:51583 "EHLO mail-qc0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756529AbaLIM30 (ORCPT ); Tue, 9 Dec 2014 07:29:26 -0500 Received: by mail-qc0-f173.google.com with SMTP id i17so287641qcy.32 for ; Tue, 09 Dec 2014 04:29:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Bib4d+vdnlqVpAWoOHMFdzmOlV9Mk0Rgxj3BTEjVGHQ=; b=Dr8MW+JxVoE4Plaj6EkoyRQp5L0DfVTJA3/nwzEcHXiLqtYFkjrz2mU/fev8jzBDrA 89uvgicd092tSmmxu3WSiBZ8bTDMKYTLOzhgkWmkhw0Yeku2DsXXpE41ICL96B88srbD WZfhGA5ocVke5gGvHywti+D3hATRh6yIeNjIxTyIVysMkSOp7gV7eP5rMzx8OU0zYmZv fGC68qKF+3Gm2SkZ2q47TyWv7PfPffNXvs/+SXdyhtKQtWNPLumS6BvbJIepNn+aAFs1 koCtuHI4AyGYmHIDFnjuLs5TCdJq0V0YrCrZjuY8kjJ4wUWfp3vhehn+fQRQtYlN4zVv nOaw== X-Received: by 10.224.92.205 with SMTP id s13mr4925308qam.52.1418128166088; Tue, 09 Dec 2014 04:29:26 -0800 (PST) Received: from localhost.localdomain ([200.204.2.138]) by mx.google.com with ESMTPSA id f7sm902683qaa.47.2014.12.09.04.29.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Dec 2014 04:29:25 -0800 (PST) From: Daniel Nicoletti To: jkosina@suse.cz Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Nicoletti Subject: [PATCH] HID: Allow HID_BATTERY_STRENGTH to be enabled Date: Tue, 9 Dec 2014 10:28:54 -0200 Message-Id: <1418128134-7997-1-git-send-email-dantti12@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Allows for HID_BATTERY_STRENGTH config be enabled without the need for HID module to be built-in, prior to this HID and POWER_SUPPLY had to be equal, and now we only select POWER_SUPPLY and depend on the HID module. Signed-off-by: Daniel Nicoletti --- drivers/hid/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index f42df4d..602ac07 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -27,7 +27,8 @@ if HID config HID_BATTERY_STRENGTH bool "Battery level reporting for HID devices" - depends on HID && POWER_SUPPLY && HID = POWER_SUPPLY + depends on HID + select POWER_SUPPLY default n ---help--- This option adds support of reporting battery strength (for HID devices