Merge tag 'gvt-fixes-2019-11-12' of https://github.com/intel/gvt-linux into drm-intel...
[linux-2.6-block.git] / include / linux / wl12xx.h
CommitLineData
2b27bdcc 1/* SPDX-License-Identifier: GPL-2.0-only */
2f01a1f5
KV
2/*
3 * This file is part of wl12xx
4 *
5 * Copyright (C) 2009 Nokia Corporation
6 *
4c5f7d7a 7 * Contact: Luciano Coelho <luciano.coelho@nokia.com>
2f01a1f5
KV
8 */
9
c1f9a095
OBC
10#ifndef _LINUX_WL12XX_H
11#define _LINUX_WL12XX_H
2f01a1f5 12
6cc9efed
LC
13#include <linux/err.h>
14
946651cb 15struct wl1251_platform_data {
1d207cd3 16 int power_gpio;
a02a2956
GI
17 /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
18 int irq;
c95cf3d0 19 bool use_eeprom;
946651cb
LC
20};
21
6cc9efed 22#ifdef CONFIG_WILINK_PLATFORM_DATA
65836112 23
946651cb
LC
24int wl1251_set_platform_data(const struct wl1251_platform_data *data);
25
26struct wl1251_platform_data *wl1251_get_platform_data(void);
27
65836112
OBC
28#else
29
946651cb
LC
30static inline
31int wl1251_set_platform_data(const struct wl1251_platform_data *data)
32{
33 return -ENOSYS;
34}
35
36static inline
37struct wl1251_platform_data *wl1251_get_platform_data(void)
38{
39 return ERR_PTR(-ENODATA);
40}
41
6cc9efed 42#endif
61ee7007 43
2f01a1f5 44#endif