From patchwork Mon Jan 7 18:53:42 2019 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: 10751099 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 971E16C5 for ; Mon, 7 Jan 2019 18:55:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 839EA289A0 for ; Mon, 7 Jan 2019 18:55:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 73DA4289AA; Mon, 7 Jan 2019 18:55:07 +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 24D85289A0 for ; Mon, 7 Jan 2019 18:55:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728548AbfAGSzA (ORCPT ); Mon, 7 Jan 2019 13:55:00 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:45122 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728118AbfAGSyM (ORCPT ); Mon, 7 Jan 2019 13:54:12 -0500 Received: by mail-lf1-f67.google.com with SMTP id b20so1051152lfa.12; Mon, 07 Jan 2019 10:54:11 -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=x/c+ISyiSRiDIt4sidmbC1nUvxvjzDpzrqa5uzk8AQg=; b=vbJQS5dHja6YT2ONoe/Mhb6vzDvAyxh9NS28mxwDuNmn1cB3OJYGD7d9t1LOpTVAts UViZKsHR0nM6HXwdbWS6W66ecCgt+AZjZ4looIOnVzqzMJHykOOFJGMEbIsqtyxIh3g8 X5RQssjaLq62I5KWHbxcHoUX1hGudzShybVf1yFOoMKUcfnQQfJjSazif/ABw88CPz2g LwhrfUq3MiNSyWSOvz/E6BVxar2N+4ocP5/AU1ccrK7ozzyIpywiyKMXD4OS3JekXL1j KAZjC5Ix0ZokYwFd8xC6LQNNhe41lWw/zju2dUtB3vAJuQbh5ijGqBxmOqbD13zJpyCQ DSrA== 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=x/c+ISyiSRiDIt4sidmbC1nUvxvjzDpzrqa5uzk8AQg=; b=thi5+RU7EQOY8DauI5wVhXxW6QDfIEVn/+1Exk1+rrj13+CdYDrLzbK+EriB4Fquz/ bdus30BjzvITJDgoF/Qd7zX7EwsA/DvDEqOj4btDy2g1Ls/72ETM/sB0RgOUZ4tqvqkz /ZPGM9VtbT0JtQsKFZRX2j/f4fXp9ZRgYb3MelIwgDQlcTqVvZQc3JdsnK2qqIhkivSX av6g1tFgApZKwYOjfkzc1WoURFr5LC8BhOqzjNgXY6k1765/uoz62GKAYxBJ++LF82VL g3H8wkDKx01eSa9Z5txbOhGi82CS3j+PZ5yrCtAthPLwSvsLdut1/RROpoxQY0F5bdta ZpYA== X-Gm-Message-State: AA+aEWZVJo8sTIHBRAJytcSz++6QX0a7WQ3KMUIJZ5sR5FYlcj57kSQk Cc+3Dpk5IzS+kqwOtpmydLQ= X-Google-Smtp-Source: AFSGD/WSJ2p1LaR7WA9g/hsMkElJipef5Ine2e8s08YHiWNT6TN+Kp+KXCGOfzXUM9yDnJ9g0Unjng== X-Received: by 2002:a19:1a14:: with SMTP id a20mr29588891lfa.1.1546887250145; Mon, 07 Jan 2019 10:54:10 -0800 (PST) Received: from localhost.localdomain ([2a02:a315:5445:5300:c050:d453:6c2:1d01]) by smtp.googlemail.com with ESMTPSA id h203sm12825007lfe.44.2019.01.07.10.54.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 10:54:09 -0800 (PST) From: =?utf-8?q?Pawe=C5=82_Chmiel?= To: dmitry.torokhov@gmail.com Cc: robh+dt@kernel.org, mark.rutland@arm.com, 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 v3 3/7] Input: tm2-touchkey: Correct initial brightness Date: Mon, 7 Jan 2019 19:53:42 +0100 Message-Id: <20190107185346.30184-4-pawel.mikolaj.chmiel@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190107185346.30184-1-pawel.mikolaj.chmiel@gmail.com> References: <20190107185346.30184-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 5a1fe08bdd76..0336789ab1bb 100644 --- a/drivers/input/keyboard/tm2-touchkey.c +++ b/drivers/input/keyboard/tm2-touchkey.c @@ -230,7 +230,7 @@ static int tm2_touchkey_probe(struct i2c_client *client, /* led device */ touchkey->led_dev.name = TM2_TOUCHKEY_DEV_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;