usb: musb: drop musb_platform_suspend/resume
[zen-stable.git] / include / linux / wl12xx.h
blob4f902e1908aaa191095c2f90741f96679b4b3113
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 struct wl12xx_platform_data {
28 void (*set_power)(bool enable);
29 /* SDIO only: IRQ number if WLAN_IRQ line is used, 0 for SDIO IRQs */
30 int irq;
31 bool use_eeprom;
32 int board_ref_clock;
35 #ifdef CONFIG_WL12XX_PLATFORM_DATA
37 int wl12xx_set_platform_data(const struct wl12xx_platform_data *data);
39 #else
41 static inline
42 int wl12xx_set_platform_data(const struct wl12xx_platform_data *data)
44 return -ENOSYS;
47 #endif
49 const struct wl12xx_platform_data *wl12xx_get_platform_data(void);
51 #endif