From patchwork Sun Apr 17 20:51:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 8863561 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D9D0CBF440 for ; Sun, 17 Apr 2016 20:52:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0BAD8201DD for ; Sun, 17 Apr 2016 20:52:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 35FAA201CD for ; Sun, 17 Apr 2016 20:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750860AbcDQUwE (ORCPT ); Sun, 17 Apr 2016 16:52:04 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34665 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750855AbcDQUwC (ORCPT ); Sun, 17 Apr 2016 16:52:02 -0400 Received: by mail-wm0-f65.google.com with SMTP id n3so19755830wmn.1 for ; Sun, 17 Apr 2016 13:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=jgkw1A8mUcbkcnQ8fscwEcZR3amQ3o1QyB07TXxmIGQ=; b=sANN9MujUHbyTNiT1kvadwiJgQbatSlF54iU3fAz88Rt2+LIlkDl/ohtPUdnZm/nb9 GOQr6Ev8ssATTEoszjzcey5X0pCi7DXkHT0AGErb71HoVTqpe3qoWgUC1vXxPoZv45bI XVVhCW/ZvE0GqjhQVTtb3VR0hneGgwdgGcsrP9EY14/oAl0Z3g1pESap+HXzwOGPJ7vm h4jgSz7J4x05nyn18/SgK8eEioTzWn1a8teCe/k1zdnzx2Ky+ryeYygtXaGxL/KGJ/ui eUFZu8tSpefcD6W8vpOSFFqDdYO6LeDufDAiBsgjCMk6P5p9KL5nYPwKQpb3WRw9AcKr /agA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=jgkw1A8mUcbkcnQ8fscwEcZR3amQ3o1QyB07TXxmIGQ=; b=Nc+yeeU1bTBcdV4tHoMK6LDUasc50eT2FmPLokifF5PUQaiVhUyXP/oiZ9YTqfocix Ins6bSFWMsz3088m76F8s7ssIfJq26EBvhf7pq/sQXIw7VyV0GCGS0LR86D7J5iJ50Su /ms2Pa+TQ3FIsSXK2jni7A33SGwryGI40FkKMCX1KeUrBbyK477qleWVxCtkKnxbn/jB A+pxqH28OsZseY1pkw1JT7PubyXan2beiS8vyj8miIY+lO8kgUC55lpfwjwWD/WmdVhj Pq+IVnve0+ywvBiHMK6qT8ry/EIXFpNKZFMPoWaXsNAidTY9GfsQuq2R+0VttCbcSsWi bpRw== X-Gm-Message-State: AOPr4FVdTjdwBlr+PLercfhNw1K2HG4bURMRDXsQ9Ui/K8/u6SLuz2pD2XZuaai13QADKA== X-Received: by 10.28.139.129 with SMTP id n123mr14712941wmd.13.1460926320904; Sun, 17 Apr 2016 13:52:00 -0700 (PDT) Received: from ?IPv6:2003:62:5f01:4400:40f7:a5a9:2add:ef63? (p200300625F01440040F7A5A92ADDEF63.dip0.t-ipconnect.de. [2003:62:5f01:4400:40f7:a5a9:2add:ef63]) by smtp.googlemail.com with ESMTPSA id by7sm60611648wjc.18.2016.04.17.13.52.00 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 17 Apr 2016 13:52:00 -0700 (PDT) To: Jiri Kosina , Benjamin Tissoires Cc: linux-input@vger.kernel.org From: Heiner Kallweit Subject: [PATCH 2/2] hid: thingm: set new flag LED_HW_PLUGGABLE Message-ID: <5713F762.5070409@gmail.com> Date: Sun, 17 Apr 2016 22:51:46 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 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=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, 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 Use recently introduced flag LED_HW_PLUGGABLE to avoid warnings when the device is unplugged. Signed-off-by: Heiner Kallweit --- drivers/hid/hid-thingm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hid/hid-thingm.c b/drivers/hid/hid-thingm.c index a90463e..2507bbe 100644 --- a/drivers/hid/hid-thingm.c +++ b/drivers/hid/hid-thingm.c @@ -165,6 +165,7 @@ static int thingm_init_led(struct thingm_led *led, const char *color_name, led->ldev.name = led->name; led->ldev.max_brightness = 255; led->ldev.brightness_set_blocking = thingm_led_set; + led->ldev.flags = LED_HW_PLUGGABLE; led->rgb = rgb; return devm_led_classdev_register(&rgb->tdev->hdev->dev, &led->ldev); }