Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c31be25a authored by Luciano Coelho's avatar Luciano Coelho
Browse files

wl12xx/wlcore: move wl1271 struct to wlcore and add ops



In order to add chip-specific operations and prepare for future
elements that need to be set by the lower driver, move the wl1271
structure to the wlcore.h file and add an empty placeholder for the
operations structure.

Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent ffeb501c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -27,6 +27,9 @@
#include "../wlcore/wlcore.h"
#include "../wlcore/debug.h"

static struct wlcore_ops wl12xx_ops = {
};

static int __devinit wl12xx_probe(struct platform_device *pdev)
{
	struct wl1271 *wl;
@@ -39,6 +42,7 @@ static int __devinit wl12xx_probe(struct platform_device *pdev)
	}

	wl = hw->priv;
	wl->ops = &wl12xx_ops;

	return wlcore_probe(wl, pdev);
}
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
#include <linux/spi/spi.h>
#include <linux/slab.h>

#include "wl12xx.h"
#include "wlcore.h"
#include "debug.h"
#include "wl12xx_80211.h"
#include "reg.h"
+1 −1
Original line number Diff line number Diff line
@@ -25,7 +25,7 @@
#ifndef __ACX_H__
#define __ACX_H__

#include "wl12xx.h"
#include "wlcore.h"
#include "cmd.h"

/*************************************************************************
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@
#ifndef __BOOT_H__
#define __BOOT_H__

#include "wl12xx.h"
#include "wlcore.h"

int wl1271_boot(struct wl1271 *wl);
int wl1271_load_firmware(struct wl1271 *wl);
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@
#include <linux/ieee80211.h>
#include <linux/slab.h>

#include "wl12xx.h"
#include "wlcore.h"
#include "debug.h"
#include "reg.h"
#include "io.h"
Loading