[PATCH V2] ath10k: read calibration data from Device Tree
Kalle Valo
kvalo at qca.qualcomm.com
Thu Nov 27 02:40:26 PST 2014
Toshi Kikuchi <toshik at chromium.org> writes:
> --- a/drivers/net/wireless/ath/ath10k/core.c
> +++ b/drivers/net/wireless/ath/ath10k/core.c
> @@ -27,6 +28,7 @@
> #include "debug.h"
> #include "htt.h"
> #include "testmode.h"
> +#include "pci.h"
>
> unsigned int ath10k_debug_mask;
> static bool uart_print;
> @@ -244,6 +246,66 @@ static int ath10k_download_cal_file(struct ath10k *ar)
> return 0;
> }
>
> +static int ath10k_download_cal_dt(struct ath10k *ar)
> +{
> + struct device_node *node;
> + int data_len;
> + void *data;
> + int ret;
> +
> + node = pci_device_to_OF_node(ath10k_pci_priv(ar)->pdev);
The problem here is that core.c cannot include pci.h, but we can get the
same node like this:
node = ar->dev->of_node;
--
Kalle Valo
More information about the ath10k
mailing list