Skip to content

Commit b476564

Browse files
egrumbachjmberg-intel
authored andcommitted
wifi: iwlwifi: kill iwl-eeprom-read
This is used by dvm only, move to dvm. Signed-off-by: Emmanuel Grumbach <[email protected]> Signed-off-by: Miri Korenblit <[email protected]> Link: https://msgid.link/20240512152312.72f4bf256c8d.I7433bda9b0fc9eece5210db2cb90c2f03973f5ec@changeid Signed-off-by: Johannes Berg <[email protected]>
1 parent 4614410 commit b476564

File tree

7 files changed

+10
-22
lines changed

7 files changed

+10
-22
lines changed

drivers/net/wireless/intel/iwlwifi/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ obj-$(CONFIG_IWLWIFI) += iwlwifi.o
44
iwlwifi-objs += iwl-io.o
55
iwlwifi-objs += iwl-drv.o
66
iwlwifi-objs += iwl-debug.o
7-
iwlwifi-objs += iwl-eeprom-read.o iwl-eeprom-parse.o
7+
iwlwifi-objs += iwl-eeprom-parse.o
88
iwlwifi-objs += iwl-phy-db.o iwl-nvm-parse.o
99
iwlwifi-objs += pcie/drv.o pcie/rx.o pcie/tx.o pcie/trans.o
1010
iwlwifi-objs += pcie/ctxt-info.o pcie/ctxt-info-gen3.o

drivers/net/wireless/intel/iwlwifi/dvm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# DVM
33
obj-$(CONFIG_IWLDVM) += iwldvm.o
44
iwldvm-objs += main.o rs.o mac80211.o ucode.o tx.o
5-
iwldvm-objs += lib.o calib.o tt.o sta.o rx.o
5+
iwldvm-objs += lib.o calib.o tt.o sta.o rx.o eeprom.o
66

77
iwldvm-objs += power.o
88
iwldvm-objs += scan.o

drivers/net/wireless/intel/iwlwifi/dvm/agn.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
22
/*
3-
* Copyright (C) 2005-2014, 2021 Intel Corporation
3+
* Copyright (C) 2005-2014, 2021, 2024 Intel Corporation
44
*/
55
#ifndef __iwl_agn_h__
66
#define __iwl_agn_h__
@@ -385,6 +385,8 @@ static inline void iwl_dvm_set_pmi(struct iwl_priv *priv, bool state)
385385
iwl_trans_set_pmi(priv->trans, state);
386386
}
387387

388+
int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size);
389+
388390
#ifdef CONFIG_IWLWIFI_DEBUGFS
389391
void iwl_dbgfs_register(struct iwl_priv *priv, struct dentry *dbgfs_dir);
390392
#else

drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.c renamed to drivers/net/wireless/intel/iwlwifi/dvm/eeprom.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
22
/*
3-
* Copyright (C) 2005-2014, 2018-2019, 2021 Intel Corporation
3+
* Copyright (C) 2005-2014, 2018-2019, 2021, 2024 Intel Corporation
44
*/
55
#include <linux/types.h>
66
#include <linux/slab.h>
77
#include <linux/export.h>
88

99
#include "iwl-drv.h"
1010
#include "iwl-debug.h"
11-
#include "iwl-eeprom-read.h"
1211
#include "iwl-io.h"
1312
#include "iwl-prph.h"
1413
#include "iwl-csr.h"
14+
#include "agn.h"
1515

1616
/*
1717
* EEPROM access time values:
@@ -391,4 +391,3 @@ int iwl_read_eeprom(struct iwl_trans *trans, u8 **eeprom, size_t *eeprom_size)
391391

392392
return ret;
393393
}
394-
IWL_EXPORT_SYMBOL(iwl_read_eeprom);

drivers/net/wireless/intel/iwlwifi/dvm/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0-only
22
/******************************************************************************
33
*
4-
* Copyright(c) 2003 - 2014, 2018 - 2022 Intel Corporation. All rights reserved.
4+
* Copyright(c) 2003 - 2014, 2018 - 2022 Intel Corporation. All rights reserved.
5+
* Copyright(c) 2024 Intel Corporation. All rights reserved.
56
* Copyright(c) 2015 Intel Deutschland GmbH
67
*
78
* Portions of this file are derived from the ipw3945 project, as well
@@ -25,7 +26,6 @@
2526

2627
#include <asm/div64.h>
2728

28-
#include "iwl-eeprom-read.h"
2929
#include "iwl-eeprom-parse.h"
3030
#include "iwl-io.h"
3131
#include "iwl-trans.h"

drivers/net/wireless/intel/iwlwifi/iwl-eeprom-read.h

Lines changed: 0 additions & 12 deletions
This file was deleted.

drivers/net/wireless/intel/iwlwifi/mvm/nvm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
22
/*
3-
* Copyright (C) 2012-2014, 2018-2019, 2021-2023 Intel Corporation
3+
* Copyright (C) 2012-2014, 2018-2019, 2021-2024 Intel Corporation
44
* Copyright (C) 2013-2015 Intel Mobile Communications GmbH
55
* Copyright (C) 2016-2017 Intel Deutschland GmbH
66
*/
@@ -10,7 +10,6 @@
1010
#include "iwl-csr.h"
1111
#include "mvm.h"
1212
#include "iwl-eeprom-parse.h"
13-
#include "iwl-eeprom-read.h"
1413
#include "iwl-nvm-parse.h"
1514
#include "iwl-prph.h"
1615
#include "fw/acpi.h"

0 commit comments

Comments
 (0)