Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1410160pxb; Fri, 21 Jan 2022 18:02:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxiGYYwy/JcyT1PQcP2/FLLJdlrtXjS4lgaSVzt7U8Cf6ByHj80KaiQ2M9yLgFNylnnNk8 X-Received: by 2002:a63:6a49:: with SMTP id f70mr4725132pgc.244.1642816924923; Fri, 21 Jan 2022 18:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642816924; cv=none; d=google.com; s=arc-20160816; b=AckrO3vM8uIwc4nsTV1wjKMkBw30a5Fw3g5Y03cpa/6sRTM5Rn1mHzeBKsu+cEj6Ji KDZ7TRLW6WEXeQ4HpGCkK8o5/gxmL6fUS7eLEFLSgI+lcg26PkgBMzsb3fYTWI3OA4ae H9iuZg1Yt+L+UwJMXGWGThudxaM3IfzIOfBdvnbHU2L8UGQPyoEXTi8ra3HFJPKVTlMp RmMoOQYeoztULm29Ud3ZNtVYb4tyBLnG/TvvMkFA6sZ1yNWxECP9CAzuIc6f7PQRro3h o0xnaIkk5EigynZV9u20N5RMrDIXywkAIL2ZtvLnvu/sdZTgvqJwLEBQuii5yAjDMnEl rejA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YaU4VG8N9CoVLuyvuF8eKASeQ+KGlO318g0VjIU083s=; b=Ko5iq9RYmzuS7a1qh6nIUZVdLfkNu7oBqRQTdRLjSgMXeFe2TxCoJx6LlZyTKdUyxx npbaUVHB61PHifki4CuKLgQNdvCx5d6Jh1FnT34CEfZH7IyO+mSosocYr5RjK9BV/gzn HoSOo+SFZknoDS87y/tyUD8jq/OiD0dic85Z2WMoBpiE9zI5Jq2N5n0P5q1tdUhDuFmb R1Bw8JWJ8vvvA4TAGL766UHiy+/URo4pI8UB+StyzDXZLMMU0LoVYNyLxtkmsnZbdWKw mCGyDOJu1gLspLotzNMtRQG+khF5m2JpgUBc6EI7wcWuQ/NQr/YWyecKKt0JeFBm0290 Iyxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h5ng4rGJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id e19si8094025pgv.33.2022.01.21.18.01.52; Fri, 21 Jan 2022 18:02:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=h5ng4rGJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1382004AbiAUQ6B (ORCPT + 99 others); Fri, 21 Jan 2022 11:58:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379858AbiAUQ4t (ORCPT ); Fri, 21 Jan 2022 11:56:49 -0500 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6995C061769 for ; Fri, 21 Jan 2022 08:55:36 -0800 (PST) Received: by mail-ot1-x32a.google.com with SMTP id a12-20020a0568301dcc00b005919e149b4cso12495062otj.8 for ; Fri, 21 Jan 2022 08:55:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YaU4VG8N9CoVLuyvuF8eKASeQ+KGlO318g0VjIU083s=; b=h5ng4rGJAP8Dw2GzBBkwMcUMgwOH/C0MM674tyPWcagZpg5a5cPerPWSPK9gZ/q+SZ aGijwYdlRIUg87bxdAGcJFIiMjPJf5at0voT815CKdmYzHDrr1qrsq9nqLlP/evlL3o0 e++guAbfsQxsxNK5JbI+IvV65L7FGZUv9HJOOXckrW9NyOZhC6k6Zw/GDczbvSxKGkLJ D5QMucQtMB28DMsAvGJduBLGkw4fHUcbACqPG0NvBVFU8hqNEp9mtfGdznqUX+cyRAHh lj5cW9oSn6tQweYPwYEqO3NRL3UzaW5LVqKul2TTano8i6rbANy18HV2wayUJxPdgJDZ /sTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YaU4VG8N9CoVLuyvuF8eKASeQ+KGlO318g0VjIU083s=; b=6m87ARSMT5/eA7Ogg/IKVgQCVJwZL8ZFKaKoO+INF/V+IiZfDpBTIY+i62LrIrWl3a a4jQChRVkSYp8zvFYkrqdGdV/e/Tm9Qy/hLuZkoMioEuNULI+Fx4LxcZMBCmMm7+FaIc LZq8FNvnpnFZ7n47a7kuGDPpvobnoYXqLwQxtyle+4SbkE0Ys7T/Q0DU2z+btZiZrEHX RhsRuzAePkiYdftGMq8zVnI3h5MhckyJqoKxKUB2EdQD4JGAJF2TcLd8iKebOs5Bk+w7 xyNYBTPH5Sd3LHWu+wL1sYk75cxnIW7HmPIav3REwCEdk4iIU8NePJ7E1CAwhyVFgShW Ez8A== X-Gm-Message-State: AOAM531QzGQiIprCdePlIxQW5DDoRpXi2PKfPPBsZM36The79xtR+v8t yMosOrS1wN4cvsCxoVfsKTX7bPBd/lY= X-Received: by 2002:a05:6830:1ad9:: with SMTP id r25mr3397494otc.31.1642784136254; Fri, 21 Jan 2022 08:55:36 -0800 (PST) Received: from thinkpad.localdomain ([2804:14d:5cd1:5d03:cf72:4317:3105:f6e5]) by smtp.gmail.com with ESMTPSA id y8sm1089271oou.23.2022.01.21.08.55.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 08:55:35 -0800 (PST) From: Luiz Sampaio To: Greg Kroah-Hartman , Jiri Slaby Cc: linux-kernel@vger.kernel.org, Luiz Sampaio Subject: [PATCH 22/31] tty: vt: changing LED_* from enum led_brightness to actual value Date: Fri, 21 Jan 2022 13:54:27 -0300 Message-Id: <20220121165436.30956-23-sampaio.ime@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220121165436.30956-1-sampaio.ime@gmail.com> References: <20220121165436.30956-1-sampaio.ime@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The enum led_brightness, which contains the declaration of LED_OFF, LED_ON, LED_HALF and LED_FULL is obsolete, as the led class now supports max_brightness. --- drivers/tty/vt/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/vt/keyboard.c b/drivers/tty/vt/keyboard.c index be8313cdbac3..33bad1973180 100644 --- a/drivers/tty/vt/keyboard.c +++ b/drivers/tty/vt/keyboard.c @@ -1035,7 +1035,7 @@ static int kbd_led_trigger_activate(struct led_classdev *cdev) if (ledstate != -1U) led_trigger_event(&trigger->trigger, ledstate & trigger->mask ? - LED_FULL : LED_OFF); + 255 : 0); tasklet_enable(&keyboard_tasklet); return 0; @@ -1081,7 +1081,7 @@ static void kbd_propagate_led_state(unsigned int old_state, if (changed & trigger->mask) led_trigger_event(&trigger->trigger, new_state & trigger->mask ? - LED_FULL : LED_OFF); + 255 : 0); } } -- 2.34.1