diff options
| author | John W. Linville <linville@tuxdriver.com> | 2014-05-27 13:51:31 -0400 |
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2014-05-27 13:51:31 -0400 |
| commit | 9db7cb6901740453a442e598563b576987dd471b (patch) | |
| tree | e38911285b5cd9980280a92ea0e0260f6c1ef2ad /include/linux | |
| parent | 3bea8eddfebe1c61ea824dd2880d4368791edc1f (diff) | |
| parent | 03c4444650969431b3a5effde4995de767e3013a (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ath9k_platform.h | 2 | ||||
| -rw-r--r-- | include/linux/crc7.h | 8 | ||||
| -rw-r--r-- | include/linux/platform_data/st21nfca.h | 32 | ||||
| -rw-r--r-- | include/linux/rfkill-gpio.h | 10 | ||||
| -rw-r--r-- | include/linux/ssb/ssb.h | 1 |
5 files changed, 39 insertions, 14 deletions
diff --git a/include/linux/ath9k_platform.h b/include/linux/ath9k_platform.h index 8598f8eacb20..a495a959e8a7 100644 --- a/include/linux/ath9k_platform.h +++ b/include/linux/ath9k_platform.h | |||
| @@ -36,6 +36,8 @@ struct ath9k_platform_data { | |||
| 36 | 36 | ||
| 37 | int (*get_mac_revision)(void); | 37 | int (*get_mac_revision)(void); |
| 38 | int (*external_reset)(void); | 38 | int (*external_reset)(void); |
| 39 | |||
| 40 | bool use_eeprom; | ||
| 39 | }; | 41 | }; |
| 40 | 42 | ||
| 41 | #endif /* _LINUX_ATH9K_PLATFORM_H */ | 43 | #endif /* _LINUX_ATH9K_PLATFORM_H */ |
diff --git a/include/linux/crc7.h b/include/linux/crc7.h index 1786e772d5c6..d590765106f3 100644 --- a/include/linux/crc7.h +++ b/include/linux/crc7.h | |||
| @@ -2,13 +2,13 @@ | |||
| 2 | #define _LINUX_CRC7_H | 2 | #define _LINUX_CRC7_H |
| 3 | #include <linux/types.h> | 3 | #include <linux/types.h> |
| 4 | 4 | ||
| 5 | extern const u8 crc7_syndrome_table[256]; | 5 | extern const u8 crc7_be_syndrome_table[256]; |
| 6 | 6 | ||
| 7 | static inline u8 crc7_byte(u8 crc, u8 data) | 7 | static inline u8 crc7_be_byte(u8 crc, u8 data) |
| 8 | { | 8 | { |
| 9 | return crc7_syndrome_table[(crc << 1) ^ data]; | 9 | return crc7_be_syndrome_table[crc ^ data]; |
| 10 | } | 10 | } |
| 11 | 11 | ||
| 12 | extern u8 crc7(u8 crc, const u8 *buffer, size_t len); | 12 | extern u8 crc7_be(u8 crc, const u8 *buffer, size_t len); |
| 13 | 13 | ||
| 14 | #endif | 14 | #endif |
diff --git a/include/linux/platform_data/st21nfca.h b/include/linux/platform_data/st21nfca.h new file mode 100644 index 000000000000..1730312398ff --- /dev/null +++ b/include/linux/platform_data/st21nfca.h | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | /* | ||
| 2 | * Driver include for the ST21NFCA NFC chip. | ||
| 3 | * | ||
| 4 | * Copyright (C) 2014 STMicroelectronics SAS. All rights reserved. | ||
| 5 | * | ||
| 6 | * This program is free software; you can redistribute it and/or modify it | ||
| 7 | * under the terms and conditions of the GNU General Public License, | ||
| 8 | * version 2, as published by the Free Software Foundation. | ||
| 9 | * | ||
| 10 | * This program is distributed in the hope that it will be useful, | ||
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 13 | * GNU General Public License for more details. | ||
| 14 | * | ||
| 15 | * You should have received a copy of the GNU General Public License | ||
| 16 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||
| 17 | */ | ||
| 18 | |||
| 19 | #ifndef _ST21NFCA_HCI_H_ | ||
| 20 | #define _ST21NFCA_HCI_H_ | ||
| 21 | |||
| 22 | #include <linux/i2c.h> | ||
| 23 | |||
| 24 | #define ST21NFCA_HCI_DRIVER_NAME "st21nfca_hci" | ||
| 25 | |||
| 26 | struct st21nfca_nfc_platform_data { | ||
| 27 | unsigned int gpio_irq; | ||
| 28 | unsigned int gpio_ena; | ||
| 29 | unsigned int irq_polarity; | ||
| 30 | }; | ||
| 31 | |||
| 32 | #endif /* _ST21NFCA_HCI_H_ */ | ||
diff --git a/include/linux/rfkill-gpio.h b/include/linux/rfkill-gpio.h index 4d09f6eab359..20bcb55498cd 100644 --- a/include/linux/rfkill-gpio.h +++ b/include/linux/rfkill-gpio.h | |||
| @@ -27,21 +27,11 @@ | |||
| 27 | * struct rfkill_gpio_platform_data - platform data for rfkill gpio device. | 27 | * struct rfkill_gpio_platform_data - platform data for rfkill gpio device. |
| 28 | * for unused gpio's, the expected value is -1. | 28 | * for unused gpio's, the expected value is -1. |
| 29 | * @name: name for the gpio rf kill instance | 29 | * @name: name for the gpio rf kill instance |
| 30 | * @reset_gpio: GPIO which is used for reseting rfkill switch | ||
| 31 | * @shutdown_gpio: GPIO which is used for shutdown of rfkill switch | ||
| 32 | * @power_clk_name: [optional] name of clk to turn off while blocked | ||
| 33 | * @gpio_runtime_close: clean up platform specific gpio configuration | ||
| 34 | * @gpio_runtime_setup: set up platform specific gpio configuration | ||
| 35 | */ | 30 | */ |
| 36 | 31 | ||
| 37 | struct rfkill_gpio_platform_data { | 32 | struct rfkill_gpio_platform_data { |
| 38 | char *name; | 33 | char *name; |
| 39 | int reset_gpio; | ||
| 40 | int shutdown_gpio; | ||
| 41 | const char *power_clk_name; | ||
| 42 | enum rfkill_type type; | 34 | enum rfkill_type type; |
| 43 | void (*gpio_runtime_close)(struct platform_device *); | ||
| 44 | int (*gpio_runtime_setup)(struct platform_device *); | ||
| 45 | }; | 35 | }; |
| 46 | 36 | ||
| 47 | #endif /* __RFKILL_GPIO_H */ | 37 | #endif /* __RFKILL_GPIO_H */ |
diff --git a/include/linux/ssb/ssb.h b/include/linux/ssb/ssb.h index 07ef9b82b66d..4568a5cc9ab8 100644 --- a/include/linux/ssb/ssb.h +++ b/include/linux/ssb/ssb.h | |||
| @@ -33,6 +33,7 @@ struct ssb_sprom { | |||
| 33 | u8 et1phyaddr; /* MII address for enet1 */ | 33 | u8 et1phyaddr; /* MII address for enet1 */ |
| 34 | u8 et0mdcport; /* MDIO for enet0 */ | 34 | u8 et0mdcport; /* MDIO for enet0 */ |
| 35 | u8 et1mdcport; /* MDIO for enet1 */ | 35 | u8 et1mdcport; /* MDIO for enet1 */ |
| 36 | u16 dev_id; /* Device ID overriding e.g. PCI ID */ | ||
| 36 | u16 board_rev; /* Board revision number from SPROM. */ | 37 | u16 board_rev; /* Board revision number from SPROM. */ |
| 37 | u16 board_num; /* Board number from SPROM. */ | 38 | u16 board_num; /* Board number from SPROM. */ |
| 38 | u16 board_type; /* Board type from SPROM. */ | 39 | u16 board_type; /* Board type from SPROM. */ |
