hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/net/wireless/intel/iwlwifi/mvm/led.c
....@@ -7,6 +7,7 @@
77 *
88 * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
99 * Copyright(c) 2017 Intel Deutschland GmbH
10
+ * Copyright(c) 2018 - 2019 Intel Corporation
1011 *
1112 * This program is free software; you can redistribute it and/or modify
1213 * it under the terms of version 2 of the GNU General Public License as
....@@ -16,11 +17,6 @@
1617 * WITHOUT ANY WARRANTY; without even the implied warranty of
1718 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1819 * General Public License for more details.
19
- *
20
- * You should have received a copy of the GNU General Public License
21
- * along with this program; if not, write to the Free Software
22
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110,
23
- * USA
2420 *
2521 * The full GNU General Public License is included in this distribution
2622 * in the file called COPYING.
....@@ -33,6 +29,7 @@
3329 *
3430 * Copyright(c) 2012 - 2014 Intel Corporation. All rights reserved.
3531 * Copyright(c) 2017 Intel Deutschland GmbH
32
+ * Copyright(c) 2018 - 2019 Intel Corporation
3633 * All rights reserved.
3734 *
3835 * Redistribution and use in source and binary forms, with or without
....@@ -118,6 +115,7 @@
118115 switch (mode) {
119116 case IWL_LED_BLINK:
120117 IWL_ERR(mvm, "Blink led mode not supported, used default\n");
118
+ /* fall through */
121119 case IWL_LED_DEFAULT:
122120 case IWL_LED_RF_STATE:
123121 mode = IWL_LED_RF_STATE;
....@@ -161,7 +159,7 @@
161159 * if we control through the register, we're doing it
162160 * even when the firmware isn't up, so no need to sync
163161 */
164
- if (mvm->cfg->device_family < IWL_DEVICE_FAMILY_8000)
162
+ if (mvm->trans->trans_cfg->device_family < IWL_DEVICE_FAMILY_8000)
165163 return;
166164
167165 iwl_mvm_led_set(mvm, mvm->led.brightness > 0);