From patchwork Fri Dec 7 10:58:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pawe=C5=82_Chmiel?= X-Patchwork-Id: 10717949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 817FC109C for ; Fri, 7 Dec 2018 10:59:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E9CE2DA24 for ; Fri, 7 Dec 2018 10:59:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 627DB2DB32; Fri, 7 Dec 2018 10:59:04 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 0D38C2DA24 for ; Fri, 7 Dec 2018 10:59:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725987AbeLGK66 (ORCPT ); Fri, 7 Dec 2018 05:58:58 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:46227 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726081AbeLGK61 (ORCPT ); Fri, 7 Dec 2018 05:58:27 -0500 Received: by mail-lf1-f68.google.com with SMTP id f23so2662453lfc.13; Fri, 07 Dec 2018 02:58:26 -0800 (PST) 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 :mime-version:content-transfer-encoding; bh=iiNySdvKpdqVZthIZ2SEKv6yRudMOPr8qkp6aqwtEDU=; b=EGUWPiUJ5vLhV2r2QgVzTtRuWhddBEGZ1ZSmdDP0uzHNWgVjqlFVf/1APt50eZDgke peMAo4IbOC8TCdJNypovGB1YJ96ppzqAayQ1G3pj8jtUGr1Wj8jDARxebkKoEZb/UGBv OEXr3fI692ntFkBqLKHvr5yVTbWbPhpDUwzz124esyfzGDPM9u7W+U85CuX7le1XPRN9 rNSOUgOwiryd9HfgyHO/yWulpdh/6JpGZF7H6kyruk1pTiZNLGudriXJaAJDjFwE6X8k f3JOLHqlA5k/U6XWj7KdNHD120YS5xN+hG8sDr/43bSUMbOwdPEWOwviUHfv8l+ZjwHF GvVw== 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:mime-version:content-transfer-encoding; bh=iiNySdvKpdqVZthIZ2SEKv6yRudMOPr8qkp6aqwtEDU=; b=jMe2ZegPAH5PmLE5IhtVcx5zBD7D7Z/p7qwXgaUvRXG9ZFlEk4mvIRe5jY4TXXX0UY MGm17jh54WWWkpiTsQq2jH0dl6bsLxA/pzHcmqeK6ln7lxFeLnK50B8QAjJgUePWCFWm AceJUsItuPOv2PLk4/mQt1ZHFql6t/paOedHGV9o/isu9WyS+UANVA0on/bGNKk2vRWA wMcBjLFjQW+bz62PKd4GlTas5y8sJHp2wSRM0ZqNSN7gxyQNmDGFcA2ItXuU8bZUnWmO TA/3rbP0HHxUU9a1qxpV7C+FKf7vfL+I3RUG4DGGvGzbnEBI8HYe/9Pj0+ppW8ha/4ne cIjg== X-Gm-Message-State: AA+aEWY9BcvW9fweIkBdsSpFHB0X+80SGfDPTm2XMDkq5KXov1Ze0Qw2 umWi6FXkGFFLpUrgkmODulc= X-Google-Smtp-Source: AFSGD/V0KyDsG5eDwdXFS8YyypebvaADggIfJiZTg0aj3TTrIgq51PDJ7vOjHqGkVByN4ac7ocemLA== X-Received: by 2002:a19:a86:: with SMTP id 128mr955668lfk.139.1544180305167; Fri, 07 Dec 2018 02:58:25 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:74d5:51ba:2673:f3f4]) by smtp.googlemail.com with ESMTPSA id a20-v6sm523362ljf.28.2018.12.07.02.58.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 02:58:24 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: devicetree@vger.kernel.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, pawel.mikolaj.chmiel@gmail.com, xc-racer2@live.ca, simon@lineageos.org Subject: [PATCH 4/8] Input: tm2-touchkey: Correct initial brightness Date: Fri, 7 Dec 2018 11:58:07 +0100 Message-Id: <20181207105811.1831-5-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181207105811.1831-1-pawel.mikolaj.chmiel@gmail.com> References: <20181207105811.1831-1-pawel.mikolaj.chmiel@gmail.com> MIME-Version: 1.0 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 From: Jonathan Bakker Tm2-touchkey don't have brightness levels, but only on/off states, so replace LED_FULL with LED_ON. Signed-off-by: Jonathan Bakker Signed-off-by: Paweł Chmiel --- drivers/input/keyboard/tm2-touchkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/keyboard/tm2-touchkey.c b/drivers/input/keyboard/tm2-touchkey.c index cc713b901bf2..a73894b8dede 100644 --- a/drivers/input/keyboard/tm2-touchkey.c +++ b/drivers/input/keyboard/tm2-touchkey.c @@ -235,7 +235,7 @@ static int tm2_touchkey_probe(struct i2c_client *client, /* led device */ touchkey->led_dev.name = touchkey->variant->name; - touchkey->led_dev.brightness = LED_FULL; + touchkey->led_dev.brightness = LED_ON; touchkey->led_dev.max_brightness = LED_ON; touchkey->led_dev.brightness_set = tm2_touchkey_led_brightness_set;