| .. | .. |
|---|
| 1 | | -/****************************************************************************** |
|---|
| 2 | | - * |
|---|
| 3 | | - * Copyright(c) 2009-2012 Realtek Corporation. All rights reserved. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 6 | | - * under the terms of version 2 of the GNU General Public License as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, but WITHOUT |
|---|
| 10 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|---|
| 11 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|---|
| 12 | | - * more details. |
|---|
| 13 | | - * |
|---|
| 14 | | - * The full GNU General Public License is included in this distribution in the |
|---|
| 15 | | - * file called LICENSE. |
|---|
| 16 | | - * |
|---|
| 17 | | - * Contact Information: |
|---|
| 18 | | - * wlanfae <wlanfae@realtek.com> |
|---|
| 19 | | - * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park, |
|---|
| 20 | | - * Hsinchu 300, Taiwan. |
|---|
| 21 | | - * |
|---|
| 22 | | - *****************************************************************************/ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
|---|
| 2 | +/* Copyright(c) 2009-2012 Realtek Corporation.*/ |
|---|
| 23 | 3 | |
|---|
| 24 | 4 | #include "../wifi.h" |
|---|
| 25 | 5 | #include "../usb.h" |
|---|
| .. | .. |
|---|
| 34 | 14 | pled->ledon = false; |
|---|
| 35 | 15 | } |
|---|
| 36 | 16 | |
|---|
| 37 | | -static void _rtl92cu_deInit_led(struct rtl_led *pled) |
|---|
| 17 | +static void rtl92cu_deinit_led(struct rtl_led *pled) |
|---|
| 38 | 18 | { |
|---|
| 39 | 19 | } |
|---|
| 40 | 20 | |
|---|
| .. | .. |
|---|
| 43 | 23 | u8 ledcfg; |
|---|
| 44 | 24 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 45 | 25 | |
|---|
| 46 | | - RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n", |
|---|
| 47 | | - REG_LEDCFG2, pled->ledpin); |
|---|
| 26 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n", |
|---|
| 27 | + REG_LEDCFG2, pled->ledpin); |
|---|
| 48 | 28 | ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); |
|---|
| 49 | 29 | switch (pled->ledpin) { |
|---|
| 50 | 30 | case LED_PIN_GPIO0: |
|---|
| .. | .. |
|---|
| 69 | 49 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 70 | 50 | u8 ledcfg; |
|---|
| 71 | 51 | |
|---|
| 72 | | - RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n", |
|---|
| 73 | | - REG_LEDCFG2, pled->ledpin); |
|---|
| 52 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "LedAddr:%X ledpin=%d\n", |
|---|
| 53 | + REG_LEDCFG2, pled->ledpin); |
|---|
| 74 | 54 | ledcfg = rtl_read_byte(rtlpriv, REG_LEDCFG2); |
|---|
| 75 | 55 | switch (pled->ledpin) { |
|---|
| 76 | 56 | case LED_PIN_GPIO0: |
|---|
| .. | .. |
|---|
| 108 | 88 | { |
|---|
| 109 | 89 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
|---|
| 110 | 90 | |
|---|
| 111 | | - _rtl92cu_deInit_led(&rtlpriv->ledctl.sw_led0); |
|---|
| 112 | | - _rtl92cu_deInit_led(&rtlpriv->ledctl.sw_led1); |
|---|
| 91 | + rtl92cu_deinit_led(&rtlpriv->ledctl.sw_led0); |
|---|
| 92 | + rtl92cu_deinit_led(&rtlpriv->ledctl.sw_led1); |
|---|
| 113 | 93 | } |
|---|
| 114 | 94 | |
|---|
| 115 | 95 | static void _rtl92cu_sw_led_control(struct ieee80211_hw *hw, |
|---|
| .. | .. |
|---|
| 133 | 113 | ledaction == LED_CTL_POWER_ON)) { |
|---|
| 134 | 114 | return; |
|---|
| 135 | 115 | } |
|---|
| 136 | | - RT_TRACE(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d\n", ledaction); |
|---|
| 116 | + rtl_dbg(rtlpriv, COMP_LED, DBG_LOUD, "ledaction %d\n", ledaction); |
|---|
| 137 | 117 | _rtl92cu_sw_led_control(hw, ledaction); |
|---|
| 138 | 118 | } |
|---|