1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/wireless/intel/iwlwifi/pcie
Bjoern A. Zeeb 0301bcd599 iwlwifi: de-const properly where needed
In order to de-const variables simply casting through (void *) is
not enough: "cast from 'const .. *' to 'void *' drops const qualifier".
Cast through (uintptr_t) as well [1] to make this compile on systems
with more strict requirements.
In addition passing const void *data to dma_map_single() also
drops the (const) qualifier.  De-constify on variable on assignment
which may be overwritten later.  In either case the (void *) cast
to dma_map_single() is not needed (anymore) either.

[1] See __DECONST() in sys/sys/cdefs.h in FreeBSD

Sponsored by:  The FreeBSD Foundation
Signed-off-by: Bjoern A. Zeeb <bz@FreeBSD.ORG>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20220128153014.eb696eb56bf6.Ide1dd041f9b908c5154a600286a7453750b0704a@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2022-02-18 10:40:50 +02:00
..
ctxt-info-gen3.c iwlwifi: yoyo: fw debug config from context info and preset 2021-10-22 10:49:01 +03:00
ctxt-info.c iwlwifi: pcie: properly set LTR workarounds on 22000 devices 2021-04-06 13:25:53 +03:00
drv.c iwlwifi: pcie: add killer devices to the driver 2021-12-21 12:35:07 +02:00
internal.h iwlwifi: pcie: remove spaces from queue names 2021-08-26 23:33:22 +03:00
rx.c iwlwifi: prefer WIDE_ID() over iwl_cmd_id() 2022-02-18 10:40:50 +02:00
trans-gen2.c iwlwifi: implement reset flow for Bz devices 2021-12-07 20:06:50 +02:00
trans.c iwlwifi: pcie: retake ownership after reset 2021-12-07 20:06:46 +02:00
tx-gen2.c iwlwifi: de-const properly where needed 2022-02-18 10:40:50 +02:00
tx.c iwlwifi: de-const properly where needed 2022-02-18 10:40:50 +02:00