]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - include/linux/wl12xx.h
UBUNTU: SAUCE: LSM stacking: procfs: add smack subdir to attrs
[mirror_ubuntu-artful-kernel.git] / include / linux / wl12xx.h
CommitLineData
2f01a1f5
KV
1/*
2 * This file is part of wl12xx
3 *
4 * Copyright (C) 2009 Nokia Corporation
5 *
4c5f7d7a 6 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
2f01a1f5
KV
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * version 2 as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20 * 02110-1301 USA
21 *
22 */
23
c1f9a095
OBC
24#ifndef _LINUX_WL12XX_H
25#define _LINUX_WL12XX_H
2f01a1f5 26
6cc9efed
LC
27#include <linux/err.h>
28
946651cb 29struct wl1251_platform_data {
1d207cd3 30 int power_gpio;
a02a2956
GI
31 /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
32 int irq;
c95cf3d0 33 bool use_eeprom;
946651cb
LC
34};
35
6cc9efed 36#ifdef CONFIG_WILINK_PLATFORM_DATA
65836112 37
946651cb
LC
38int wl1251_set_platform_data(const struct wl1251_platform_data *data);
39
40struct wl1251_platform_data *wl1251_get_platform_data(void);
41
65836112
OBC
42#else
43
946651cb
LC
44static inline
45int wl1251_set_platform_data(const struct wl1251_platform_data *data)
46{
47 return -ENOSYS;
48}
49
50static inline
51struct wl1251_platform_data *wl1251_get_platform_data(void)
52{
53 return ERR_PTR(-ENODATA);
54}
55
6cc9efed 56#endif
61ee7007 57
2f01a1f5 58#endif