drm/exynos: fix types for compilation on 64bit architectures
[linux-2.6/btrfs-unstable.git] / include / linux / wl12xx.h
blob95704cd4cfab3ccee071c4a7765d433b1de99a14
1 /*
2 * This file is part of wl12xx
4 * Copyright (C) 2009 Nokia Corporation
6 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
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.
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.
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
24 #ifndef _LINUX_WL12XX_H
25 #define _LINUX_WL12XX_H
27 #include <linux/err.h>
29 struct wl1251_platform_data {
30 int power_gpio;
31 /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
32 int irq;
33 bool use_eeprom;
36 #ifdef CONFIG_WILINK_PLATFORM_DATA
38 int wl1251_set_platform_data(const struct wl1251_platform_data *data);
40 struct wl1251_platform_data *wl1251_get_platform_data(void);
42 #else
44 static inline
45 int wl1251_set_platform_data(const struct wl1251_platform_data *data)
47 return -ENOSYS;
50 static inline
51 struct wl1251_platform_data *wl1251_get_platform_data(void)
53 return ERR_PTR(-ENODATA);
56 #endif
58 #endif