Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1408681pxb; Fri, 21 Jan 2022 18:00:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxwFtS/e4UxyFSxF3OVjV3ZJjzZlKj8DhD+qTvoPKhybtvBAM8xFiALTq/CsuSxxIK48WX9 X-Received: by 2002:a05:6a00:c89:b0:4bf:29cf:b055 with SMTP id a9-20020a056a000c8900b004bf29cfb055mr5970185pfv.58.1642816804914; Fri, 21 Jan 2022 18:00:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642816804; cv=none; d=google.com; s=arc-20160816; b=QSbEzVZteDETL49Djf0MfYqaE+qoxbCo8/ZLPmm18FMtMvocoLRO+lmfV43/pzbuvU 9jRcsgUKNMRnYZ6yX3E/TXnVR5IX3QW81EepTNUDt+TFEVjY+j6PqN89IyHw0foYMye0 wh89BbfgGRBs1OrVAyR01hZEjjJn8jv2kmwFtzvrl+8NzJSzHlzLmrpCyWg7EQ6xpGCC aOC309e87V7/8n7vcJnpeytmv4V1e33Mzat51X+K5sgzZYb3IOcrXPaVZorVHUSJ5Aa1 jJOBWHCE3chvngJOmleT2G3pVSlyWy20x/xcH5/iBBlyWusaZiNguZTT1sW3KIDaDdQ/ ZO/A== 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=JWwCA6Os6ufO2OamoDdA1VpkWXg1qWYv/gpuXYzvEa0=; b=Hk2Q8Lkq0rHx8lyUy26YOhj1n7WaoFQqvUeScEZCdXYp+9z+1olIFEbPUHAN14yjaB /JQ8f5g94FWTUNjeUt2C3XAnIoo9tYUWnFNpNd9c+/HgN5H09QVWT2owfkTxoBMvfNwk /xqmyC7gGd8V2j4HSmrkdwi6edskNMUswiJ0crEtJKqDIC+T7soZKMHO86MtJnqOwusD GeX0UHC44JgOlQcQ9OpNTFmOI1iixar09rIYfVLrvsQcFsmwt9HrlOz4iEZLOpXyVFu+ FLzTg7Nz1GN8U8t9QSTSkPc17RV47WHPcep0kXQ4lIYHTXYp3R5W+qaogz7Mg6Y/CRNO QXGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="MjAl/2d7"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 i191si4855505pge.679.2022.01.21.17.59.56; Fri, 21 Jan 2022 18:00:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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="MjAl/2d7"; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S1381830AbiAUQ5W (ORCPT + 70 others); Fri, 21 Jan 2022 11:57:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380350AbiAUQ44 (ORCPT ); Fri, 21 Jan 2022 11:56:56 -0500 Received: from mail-oi1-x22a.google.com (mail-oi1-x22a.google.com [IPv6:2607:f8b0:4864:20::22a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BE6CC061775; Fri, 21 Jan 2022 08:55:51 -0800 (PST) Received: by mail-oi1-x22a.google.com with SMTP id s9so14319296oib.11; Fri, 21 Jan 2022 08:55:51 -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=JWwCA6Os6ufO2OamoDdA1VpkWXg1qWYv/gpuXYzvEa0=; b=MjAl/2d7hFcNgyCHuaDhSHTjyebU3drd8M3jU8y2IQsqE6Okaz0WRef5nk97QClDqB dvRMz5ydDfyCVO7XtDrt7BlmMK8yIEirVQKVXa4Ab0p+oKDAgX92r7pE+hkI77CSUetS MH/DYXn1WvTkPKI+tE5gsImAWrq+f6bwAihvF9Zrbyyajq/ZWrGOG31AcvN0xvHHsQ/a 76Zbei7//5h/FF2ZDZo4d56PGsZXeyiJsEbzfQNDCrF7XS9IcXprwm/icw8/L0rshHl1 SNFx7oImgsZ6tDJvJDrHND4vFRrTq7IlAxO8d9ISxYF3yqUI1B4MhMf2hN48A52BFZM4 0oSw== 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=JWwCA6Os6ufO2OamoDdA1VpkWXg1qWYv/gpuXYzvEa0=; b=PxZNcHG/qr/KxQvSQ1Z9i/Ov/3ZWXQQV57z6Hde1O73TuAe56EUWAIHv+/D4NSLYxH gF/MOXhjuzR3vrTETsC9D3rbz9FC/IG0EswFyqKE1wnVgqT8MZxbXlh5pt7kS35q46Az hC/zNMnZmvNm5+zl4MBWgmZG1PfPxThqIUynx7fq31dWXf49PYxkjxsQre9tubgCmVwd XWN45CZ5h7TlJdOIu8XSQYIOJtDbRuYCrSVW7BtOb/Z7hZpqocefiQCkAj1q0JVz6tBq yYJwNKToy60bjwXNxee7ORLWfkAt56c1QhVd6SUTudwJ4ETv2tLm8NcBtMvEZIQChkaP LnBQ== X-Gm-Message-State: AOAM530DTZW9qPeXPJHeZmcgvj4F48d0hh8/+HtBjC8ID8AA9Xs3bUro ViGcXU20Mrstl/VKD7oQ1t0= X-Received: by 2002:a05:6808:1442:: with SMTP id x2mr1217003oiv.166.1642784150774; Fri, 21 Jan 2022 08:55:50 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 08:55:50 -0800 (PST) From: Luiz Sampaio To: Johannes Berg , "David S. Miller" , Jakub Kicinski Cc: linux-kernel@vger.kernel.org, Luiz Sampaio , linux-wireless@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 27/31] net: mac80211 : changing LED_* from enum led_brightness to actual value Date: Fri, 21 Jan 2022 13:54:32 -0300 Message-Id: <20220121165436.30956-28-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-wireless@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. --- net/mac80211/led.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/mac80211/led.c b/net/mac80211/led.c index 6de8d0ad5497..ac36579636bb 100644 --- a/net/mac80211/led.c +++ b/net/mac80211/led.c @@ -14,9 +14,9 @@ void ieee80211_led_assoc(struct ieee80211_local *local, bool associated) if (!atomic_read(&local->assoc_led_active)) return; if (associated) - led_trigger_event(&local->assoc_led, LED_FULL); + led_trigger_event(&local->assoc_led, 255); else - led_trigger_event(&local->assoc_led, LED_OFF); + led_trigger_event(&local->assoc_led, 0); } void ieee80211_led_radio(struct ieee80211_local *local, bool enabled) @@ -24,9 +24,9 @@ void ieee80211_led_radio(struct ieee80211_local *local, bool enabled) if (!atomic_read(&local->radio_led_active)) return; if (enabled) - led_trigger_event(&local->radio_led, LED_FULL); + led_trigger_event(&local->radio_led, 255); else - led_trigger_event(&local->radio_led, LED_OFF); + led_trigger_event(&local->radio_led, 0); } void ieee80211_alloc_led_names(struct ieee80211_local *local) @@ -344,7 +344,7 @@ static void ieee80211_stop_tpt_led_trig(struct ieee80211_local *local) tpt_trig->running = false; del_timer_sync(&tpt_trig->timer); - led_trigger_event(&local->tpt_led, LED_OFF); + led_trigger_event(&local->tpt_led, 0); } void ieee80211_mod_tpt_led_trig(struct ieee80211_local *local, -- 2.34.1