Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp398062imu; Fri, 7 Dec 2018 03:00:17 -0800 (PST) X-Google-Smtp-Source: AFSGD/UMSTlhHrITP+4ppL0xlgvA1nt6TgE7WmfCM2RgY/2uVPH6gZ3gsvdyWM8UnKkt3+MWjy86 X-Received: by 2002:a62:33c1:: with SMTP id z184mr1760728pfz.104.1544180417250; Fri, 07 Dec 2018 03:00:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544180417; cv=none; d=google.com; s=arc-20160816; b=ICxQch5g9NoVjK5A9UXSxmBUXvWV0S3sdAspkAZTSvBrTH8Bk9m7sebumW9+MtkbpV HGfRmX8Iz580zuPdDBiTdOpzQDfw7EAGsOh9RlZtR0AuHDmakof6+Jm/t6rG0Sb9KS6X 69q78gFJtg+vW6IquKK7pMX4StEMA4WDr4dV0IKo/tzzGiZVPF2xy22t1D/IS909xNhN eeFRD3Dz1p1sit/4JRtlnQVb4Dde46ihtxZu5aH4v+JtCgLNNK3uSX0KiD3o4esMHLTI m/XSedaNivo8G3gLrXwJenE9cUMKo62paISpwxxwvGDZqVY6VRzmrHfZ3JDdL2rxa/XK DsgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=iiNySdvKpdqVZthIZ2SEKv6yRudMOPr8qkp6aqwtEDU=; b=t16iqJ/aSJ4p2iCM5zMyFbHMUqwk3dysDgaYcLcMaCeNKup9nn+WkDYj4fUKF6qEQ3 DfdPjEPulR8OoeOVaxyUmSVWvGZkcAMSKMrB6TngNUbJXZEjucVB6xbl43l8PzS1xhO9 MTeA7tuYykyOC69ulgjvJhbNQ/7AsOqE0mS9oEENYO18OL3Glt2NAjack5YKqalLu4hU PkQeDSl46wZH0cB84vDhYDCZYOQ1TEdbSQWSfvl0H9WT1SX4Nn7AY9O/SBqy1wr30BTU SJr8gH9c7hxo8eiJmUDpUh/KCaHUWWCKUdV2wUBpwdgKW5nN/d+9691qWP+m5nnpAzMP duMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EGUWPiUJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o22si2373314pgb.584.2018.12.07.03.00.01; Fri, 07 Dec 2018 03:00:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=EGUWPiUJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726180AbeLGK66 (ORCPT + 99 others); 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-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=20Chmiel?= 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.17.1