Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1408882pxb; Fri, 21 Jan 2022 18:00:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCM3rdlmrIMq7Y8VDuMSUcInHvi+k6t/Hs/DJFL8lCmDEM67h43zNUJvEddm4sddRli5Lh X-Received: by 2002:a17:902:9682:b0:149:15d2:55ae with SMTP id n2-20020a170902968200b0014915d255aemr6396696plp.59.1642816824712; Fri, 21 Jan 2022 18:00:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642816824; cv=none; d=google.com; s=arc-20160816; b=NF7jvm105uZcPuiNHUIkk9vr6hLUhFV/MA7fFasNZsHt1R6gtrTwyvQ5yXd+F1p5Gv MPKXBlgzX5kVWSgNw3wEE0jY8Eztrj2ugZ9yNZPdsjltEvMWQXvjAi1TsBIdgq5B1cww ILECxZt7Zc0oB32/1Y5RS89qM9RrKksTGWKk8HQgzn10cJUiGTNPFmwmp5ABQ1fZBx4P /jYFdNAmwuuyXVsEB1x2QqMgcXllUb/s1IO1237o1qexg1/gh7tqxc+s487iHT0v8fqM yzUWoWSDsr6gOjOhluSQugfk8hhcSEyeUNpu3oXnkqCIqyEC9HEXbkg1yHyIARwtZx/s uBrw== 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=/hFEnKfQJiIAaQ2mjd4rxrXqXcThyAji37idZyhsBAY=; b=Of/p7S2RW35lsGH0ixTXOhX47gmQL5ruP38Zw9cENYwQ8lLT0qbUdW2+QySkSfjz9F DtMEbMwhHum2Y/or3nyXcHCEefitwJURO6iE3IBmb1Aon1XXzjynhCFREk+E/xcWW1rd qonMRj11LRqM5GrHH71LklPJn7hZFGNrt1FYBpvPopBmem4GWBceDffmuGgsOPwbHrwN HxeZfMOP3PJNf99PASWRcgSy0GlPGD/WGwK3VBmt3M5h4QxW8OO37FNYwtZsi1y42xNp U89Q++M5lrqvfiWAc5eR6SQQNsHCAw3lXn11JLVvf4WhLmXAEC+etCFRLev0CKdc81LB 3WZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=HEDrhGVj; 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 32si4748079pjz.151.2022.01.21.18.00.13; Fri, 21 Jan 2022 18:00:24 -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=HEDrhGVj; 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 S1381047AbiAUQ5m (ORCPT + 99 others); Fri, 21 Jan 2022 11:57:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380343AbiAUQ44 (ORCPT ); Fri, 21 Jan 2022 11:56:56 -0500 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81043C061773; Fri, 21 Jan 2022 08:55:48 -0800 (PST) Received: by mail-oi1-x22f.google.com with SMTP id bb37so14392661oib.1; Fri, 21 Jan 2022 08:55:48 -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=/hFEnKfQJiIAaQ2mjd4rxrXqXcThyAji37idZyhsBAY=; b=HEDrhGVj7yfZqvkjCw8k1/FNEXYzOGPmv9dNN2Hn6Ih3y+FbsyD2K4jPUpYbNauJT8 bhUbA4IVknUbh6oM8nQDN5aFYvnp1bOdR0zYfUmbmVsSTNpmSF+ydgzjS2IjIvPFwvOi wm5++I3D8YKAJmsKDWrCqlQBb21YPA7Z0xNV/ft/YJNfpkRdkRTm3j2l3quXGaU2npIV qgGxPa2AU2MyfCpmiy+eBEn6LQ+z89Kp3A8rlk7IcSJCOA3XTiiSHqGWRCR4V1McJOKW 1L+0wi/MNWYT1AuruOViuur8pCfx+lF/oFLKZH6fHOCNEZbY1AHof/Dlsq16lwsVaZUh r9bw== 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=/hFEnKfQJiIAaQ2mjd4rxrXqXcThyAji37idZyhsBAY=; b=LD/ZRy5MlWFyv4U850/TZ/BlHnADzbQUmrAn5Vwa6GedMbqdfRPWrLcHSbpou/bVvb 7qKIek8LORHeBtbRIf4KtkvgHkG61FqfQ0teUWxabOASx5yh+3DytZNZ+vQmk/Mq8PXG OUqoySn5+SgqyKWTCg7+5bAzQwPDFtDWE3zN7ZgQROiXSqgmVLcN4jC7vQhSq3pZOJ8g 7tL7ASlFT1/c8cv0EcJHUlHgkd/NMbvg5mS+sivLTrexBxu+kyxQ6U0LLzZPvO5HAbZc qU7JNADXRpAhvkWtQnjQsxhLxX3Jv70ew06UQ/1B+LtNy3Jm07YF3OTXAowLfH526Ry+ pPlA== X-Gm-Message-State: AOAM532u1f+O5Y9zPiYTKfoPwN7PRhxDeXghqds6Maqrr9WaQRPVbgzt BPmBNKNRugxp8B8E40n+S0E= X-Received: by 2002:a05:6808:1147:: with SMTP id u7mr1261723oiu.117.1642784147933; Fri, 21 Jan 2022 08:55:47 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 08:55:47 -0800 (PST) From: Luiz Sampaio To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , "David S. Miller" , Jakub Kicinski Cc: linux-kernel@vger.kernel.org, Luiz Sampaio , linux-bluetooth@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH 26/31] net: bluetooth: changing LED_* from enum led_brightness to actual value Date: Fri, 21 Jan 2022 13:54:31 -0300 Message-Id: <20220121165436.30956-27-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. --- net/bluetooth/leds.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/bluetooth/leds.c b/net/bluetooth/leds.c index f46847632ffa..7f7e3eed9407 100644 --- a/net/bluetooth/leds.c +++ b/net/bluetooth/leds.c @@ -22,7 +22,7 @@ void hci_leds_update_powered(struct hci_dev *hdev, bool enabled) { if (hdev->power_led) led_trigger_event(hdev->power_led, - enabled ? LED_FULL : LED_OFF); + enabled ? 255 : 0); if (!enabled) { struct hci_dev *d; @@ -37,7 +37,7 @@ void hci_leds_update_powered(struct hci_dev *hdev, bool enabled) read_unlock(&hci_dev_list_lock); } - led_trigger_event(bt_power_led_trigger, enabled ? LED_FULL : LED_OFF); + led_trigger_event(bt_power_led_trigger, enabled ? 255 : 0); } static int power_activate(struct led_classdev *led_cdev) @@ -48,7 +48,7 @@ static int power_activate(struct led_classdev *led_cdev) htrig = to_hci_basic_led_trigger(led_cdev->trigger); powered = test_bit(HCI_UP, &htrig->hdev->flags); - led_trigger_event(led_cdev->trigger, powered ? LED_FULL : LED_OFF); + led_trigger_event(led_cdev->trigger, powered ? 255 : 0); return 0; } -- 2.34.1