From patchwork Wed Dec 17 13:53: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: 5507071 X-Patchwork-Delegate: jikos@jikos.cz Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 035769F1CD for ; Wed, 17 Dec 2014 13:54:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E7B420A22 for ; Wed, 17 Dec 2014 13:54:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 73A91202C8 for ; Wed, 17 Dec 2014 13:54:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751304AbaLQNyH (ORCPT ); Wed, 17 Dec 2014 08:54:07 -0500 Received: from mail-qc0-f174.google.com ([209.85.216.174]:38716 "EHLO mail-qc0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751227AbaLQNyH (ORCPT ); Wed, 17 Dec 2014 08:54:07 -0500 Received: by mail-qc0-f174.google.com with SMTP id c9so11898316qcz.19 for ; Wed, 17 Dec 2014 05:54:05 -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=LhUWg1ST92Gob+nDXhkLM5M6pvmxhigScIu7Lt2/H5gsRa6W4Zpo2Xu4SsGE1gtSed letqvZhtZ3WnjhYcoLiQD26D9IFg1HqLC4eqqkviIpN14buB4jrNjAeNuRaSlkzmAISi jOIhO5pu37v+bdCDbDuH27dWSVJ1T+vb0OUslVAHtW25SXzvTHKADA+TSgqTjDbncrFk fCjjCMTjCtbjT4dM4ckr7pq+QBPaviE0Hh2zki3O2QOmaG+Ay9wMUtPBZZQNEhuAJfjn ILcWgGlKmdcirZdIG59zxesPpoSQ6V6/lw1ieeMR8ztUo4bqbM8ZKe49PG6+CuVIljhV 5LiA== X-Received: by 10.224.169.2 with SMTP id w2mr74768901qay.33.1418824445451; Wed, 17 Dec 2014 05:54:05 -0800 (PST) Received: from bart.home ([191.249.227.186]) by mx.google.com with ESMTPSA id q4sm3902644qax.31.2014.12.17.05.54.03 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Dec 2014 05:54:04 -0800 (PST) From: Daniel Nicoletti To: jkosina@suse.cz Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, dantti12@gmail.com Subject: [PATCH] HID: Allow HID_BATTERY_STRENGTH to be enabled Date: Wed, 17 Dec 2014 11:53:54 -0200 Message-Id: <1418824434-12947-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