From patchwork Fri May 25 15:30:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 136947 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp3736456lji; Fri, 25 May 2018 08:31:30 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqgpl+ntdPMULYA7BjjwE4AHFIQlSIxDTnmnPefxq7cr4vtuq+7x7V20tUXSUQuDooepYb8 X-Received: by 2002:a62:5841:: with SMTP id m62-v6mr3037889pfb.116.1527262289895; Fri, 25 May 2018 08:31:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527262289; cv=none; d=google.com; s=arc-20160816; b=GG//P7X+vGP9H0woX6QXCZftqXRyxj6bzwFhT9RGmAVfFhf9FMFil6Cpv9Yv5M5o/0 ZcMy1dislDUnTyjMu2ACQlrdo2tITqWT23CVc7viXre80pmhK021iZy09p9g3d3i/sVY DK5gmDX47i+ERQ2tPHQcnpM4DqDtbD3tIWoH98N44xYsJ5LwjI3U0kTlbYhX+E3CAglL Ad3OCfp1BE50Fu/YR3d5ID22AGDclCX28Q/dib0U1/ijL0utFuoRU5WSfUITRhMukUzr yd5yrxia8k9tPb75YZ+EwSQukljnlKO+Z0ZOe2Tf5Qm0vW2b5SuUT3LNshfSLoxl5EZ0 qBeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=UlMAkwK1CyUb8zVNa2ubFeMKLaQVyy20lDo2B8RUWd0=; b=h4kB39BJnUussUF6oAqRIw75Fh+2LwxFJVQbglhZc2QtZlFHmSlYQdbCZDq94KrJXj H6tX6QwV2RoNzfA3xK2UL2CZdQQZNJgbZTzLos31jNQdMng5Wj4e/A0pHdx64vjWU7OB IuRVUoDFtdbtHl5t5vrI4rs5ITOErY4GSScTKRf3gNRiAVrw6d4aSgFG9lu26/UC+HXm OzSpa/i2vUhUBNKUhP55+dfaJ8KNfS4Ycs/8S8pFAR6oO6wOERKttWedwCqAXlKnjoX8 d7PqnhlKHEl5ptVJ/jGnLHCBUlrQBpnmtgwHIuMAzgXYNHRRRYOhqnOElepWBT3goqXa Mr0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m3-v6si23873289plt.71.2018.05.25.08.31.29 for ; Fri, 25 May 2018 08:31:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-input-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-input-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964980AbeEYPb2 (ORCPT ); Fri, 25 May 2018 11:31:28 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:49471 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964823AbeEYPb2 (ORCPT ); Fri, 25 May 2018 11:31:28 -0400 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MApWF-1fTcYG3pxj-00BvYV; Fri, 25 May 2018 17:31:20 +0200 From: Arnd Bergmann To: Jiri Kosina Cc: Arnd Bergmann , Benjamin Tissoires , Rodrigo Rivas Costa , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] HID: steam: select CONFIG_POWER_SUPPLY Date: Fri, 25 May 2018 17:30:51 +0200 Message-Id: <20180525153118.3015806-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:LuPAzcPwrredZ4GCgi082/Fq4VdHlzMcLBnxlvCmFk1K2UasNm9 etN+R0BIQqgbMWDWNjKgB/KYuT5A4xic93sWJ3k3TzQiRLFfMM1gjFoPetRnoijxk2BQXz3 v9QwEeD6HiqFwZu6NrpAn5xwNMtwSzHrSEQ1VcUgqCA1hMviZt7gJJnw394CTzdZ8qf4SVX vtuOpYZ2SrgRN06aBAMYA== X-UI-Out-Filterresults: notjunk:1; V01:K0:vAW/VVBd6Q4=:VugT0aKXS5NrlJX+ZoT/Uj 239IHjFUFU1yeRb1QIn8Hag/t/K9LUWzaewnfKHT6YBeT+hzTC8zO0hCQfkXieyiFB4Z2u32f PWR7Bdxo7vdQOjltQL3yMx2Cfjrx9Lnns/jhoLJZMXX/mZhqKsQldpzcEwCrtSlrPddL6n69Q EeOgNMMn8dcVWjUAbpopM/+K3jdEJnD3ucwx0vsBEq9/Z5szgNysoA/b/7giB/ZLzGmqzdL9x iYoDgP1sG/XlNtWxkfaSmWcK9wIlVWPVQlcFng1ZTqe8f5bumz40RRhj33aKfFUVqiLAhxImD XT+1gt7j61KuWOdxRP6PVIAH7OPRY4n4cQplDK3u8y6QCj7hSpJ2rBJEscZDAVQLodh5Pqvg4 Zi/rpMVFn+SybPTRH1B743JWauGArUpdMnrHCDQM7wN1wo7w+YJUkENRQCeKFqcV2eItffrYU QVOEUaNn89q09hq70GdFAOD0bF8ijvFzAjfspa1ThmX6kHQJN+Dv3N9HYi2tm3FECfFJcEUxi Yq8VJDpWrv/vOT1cl9kEIJFT2qSkFGaEbSfvXG95AC6ytUmtP2vmePIw1oAtCvvpm+W4fWA/+ RQod4f32P+I3Wu8sxovOHE5jvrgAydoIVaMqjCKgXtpsYlw8FjueA6zdOiJ20nVAXqTA61HMp xsButtKr5WpmKG0Uvns+vdFRh3GW7g9zmXqeiah2B9S34HPLzykpbWfRuURJ8q0f02A4= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org Using the power supply APIs requires selecting the appropriate Kconfig symbol, otherwise we get this build failure: drivers/hid/hid-steam.o: In function `steam_unregister': hid-steam.c:(.text+0x1cc): undefined reference to `power_supply_unregister' drivers/hid/hid-steam.o: In function `steam_battery_get_property': hid-steam.c:(.text+0x2d2): undefined reference to `power_supply_get_drvdata' drivers/hid/hid-steam.o: In function `steam_raw_event': hid-steam.c:(.text+0xcba): undefined reference to `power_supply_changed' drivers/hid/hid-steam.o: In function `steam_register': hid-steam.c:(.text+0x13e3): undefined reference to `power_supply_register' hid-steam.c:(.text+0x13fe): undefined reference to `power_supply_powers' Fixes: f82719790751 ("HID: steam: add battery device.") Signed-off-by: Arnd Bergmann --- drivers/hid/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/hid/Kconfig b/drivers/hid/Kconfig index 8a865e3ccea6..a49a10437c40 100644 --- a/drivers/hid/Kconfig +++ b/drivers/hid/Kconfig @@ -848,6 +848,7 @@ config HID_SPEEDLINK config HID_STEAM tristate "Steam Controller support" depends on HID + select POWER_SUPPLY ---help--- Say Y here if you have a Steam Controller if you want to use it without running the Steam Client. It supports both the wired and