Commit ac1a3bfa authored by Michalis Pappas's avatar Michalis Pappas Committed by Greg Kroah-Hartman
Browse files

staging: gdm72xx: Indentation and other whitespace fixes

parent 39c511f8
Loading
Loading
Loading
Loading
+10 −19
Original line number Diff line number Diff line
@@ -22,10 +22,8 @@
struct sdio_tx {
	struct list_head	list;
	struct tx_cxt		*tx_cxt;

	u8			*buf;
	int			len;

	void (*callback)(void *cb_data);
	void *cb_data;
};
@@ -35,9 +33,7 @@ struct tx_cxt {
	struct list_head	sdu_list;
	struct list_head	hci_list;
	struct timeval		sdu_stamp;

	u8			*sdu_buf;

	spinlock_t		lock;
	int			can_send;
	int			stop_sdu_tx;
@@ -46,7 +42,6 @@ struct tx_cxt {
struct sdio_rx {
	struct list_head	list;
	struct rx_cxt		*rx_cxt;

	void (*callback)(void *cb_data, void *data, int len);
	void *cb_data;
};
@@ -54,18 +49,14 @@ struct sdio_rx {
struct rx_cxt {
	struct list_head	free_list;
	struct list_head	req_list;

	u8			*rx_buf;

	spinlock_t		lock;
};

struct sdiowm_dev {
	struct sdio_func	*func;

	struct tx_cxt		tx;
	struct rx_cxt		rx;

	struct work_struct	ws;
};

+9 −8
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@
MODULE_DEVICE_TABLE(usb, id_table);

#define TX_BUF_SIZE		2048

#if defined(CONFIG_WIMAX_GDM72XX_WIMAX2)
#define RX_BUF_SIZE		(128*1024)	/* For packet aggregation */
#else
+2 −9
Original line number Diff line number Diff line
@@ -28,10 +28,8 @@ struct usb_tx {
	struct list_head	p_list;
#endif
	struct tx_cxt		*tx_cxt;

	struct urb		*urb;
	u8			*buf;

	void (*callback)(void *cb_data);
	void			*cb_data;
};
@@ -43,17 +41,14 @@ struct tx_cxt {
#if defined(CONFIG_WIMAX_GDM72XX_USB_PM) || defined(CONFIG_WIMAX_GDM72XX_K_MODE)
	struct list_head	pending_list;
#endif

	spinlock_t		lock;
};

struct usb_rx {
	struct list_head	list;
	struct rx_cxt		*rx_cxt;

	struct urb		*urb;
	u8			*buf;

	void (*callback)(void *cb_data, void *data, int len);
	void *cb_data;
};
@@ -75,10 +70,8 @@ struct usbwm_dev {
	int bw_switch;
	struct list_head	list;
#endif

	struct tx_cxt		tx;
	struct rx_cxt		rx;

	int			padding;
};

+10 −11
Original line number Diff line number Diff line
@@ -52,7 +52,6 @@ static struct {
	struct sock *sock;
	struct list_head evtq;
	spinlock_t evt_lock;

	struct list_head freeq;
	struct work_struct ws;
} wm_event;
+8 −13
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@
struct phy_dev {
	void			*priv_dev;
	struct net_device	*netdev;

	int (*send_func)(void *priv_dev, void *data, int len,
			 void (*cb)(void *cb_data), void *cb_data);
	int (*rcv_func)(void *priv_dev,
@@ -47,15 +46,11 @@ struct phy_dev {
struct nic {
	struct net_device	*netdev;
	struct phy_dev		*phy_dev;

	struct net_device_stats	stats;

	struct data_s		sdk_data[SIOC_DATA_MAX];

#if defined(CONFIG_WIMAX_GDM72XX_QOS)
	struct qos_cb_s		qos;
#endif

};

int register_wimax_device(struct phy_dev *phy_dev, struct device *pdev);
Loading