diff options
author | Jean Delvare <jdelvare@suse.de> | 2015-09-25 04:52:26 -0400 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2015-10-19 14:01:19 -0400 |
commit | 04831ae41c034db2e2922c460cc818c4a1f6e7e0 (patch) | |
tree | 87467834840de1efd59995fc2e407e2340fb8887 | |
parent | b2117c12ab4d351cb309331ba8605a9d4e03f2f1 (diff) |
NFC: microread: Auto-select core module
As I understand it, the core nfc_microread module is useless without
either the I2C or the MEI access module. So hide NFC_MICROREAD and
select it automatically if either NFC_MICROREAD_I2C or
NFC_MICROREAD_MEI is selected.
This avoids presenting NFC_MICROREAD when neither NFC_MICROREAD_I2C
nor NFC_MICROREAD_MEI can be selected.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Lauro Ramos Venancio <lauro.venancio@openbossa.org>
Cc: Aloisio Almeida Jr <aloisio.almeida@openbossa.org>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r-- | drivers/nfc/microread/Kconfig | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/nfc/microread/Kconfig b/drivers/nfc/microread/Kconfig index 951d5542f6bc..2c6dbc9f6781 100644 --- a/drivers/nfc/microread/Kconfig +++ b/drivers/nfc/microread/Kconfig | |||
@@ -1,20 +1,15 @@ | |||
1 | config NFC_MICROREAD | 1 | config NFC_MICROREAD |
2 | tristate "Inside Secure microread NFC driver" | 2 | tristate |
3 | depends on NFC_HCI | ||
4 | select CRC_CCITT | 3 | select CRC_CCITT |
5 | default n | ||
6 | ---help--- | 4 | ---help--- |
7 | This module contains the main code for Inside Secure microread | 5 | This module contains the main code for Inside Secure microread |
8 | NFC chipsets. It implements the chipset HCI logic and hooks into | 6 | NFC chipsets. It implements the chipset HCI logic and hooks into |
9 | the NFC kernel APIs. Physical layers will register against it. | 7 | the NFC kernel APIs. Physical layers will register against it. |
10 | 8 | ||
11 | To compile this driver as a module, choose m here. The module will | ||
12 | be called microread. | ||
13 | Say N if unsure. | ||
14 | |||
15 | config NFC_MICROREAD_I2C | 9 | config NFC_MICROREAD_I2C |
16 | tristate "NFC Microread i2c support" | 10 | tristate "Inside Secure Microread device support (I2C)" |
17 | depends on NFC_MICROREAD && I2C && NFC_SHDLC | 11 | depends on NFC_HCI && I2C && NFC_SHDLC |
12 | select NFC_MICROREAD | ||
18 | ---help--- | 13 | ---help--- |
19 | This module adds support for the i2c interface of adapters using | 14 | This module adds support for the i2c interface of adapters using |
20 | Inside microread chipsets. Select this if your platform is using | 15 | Inside microread chipsets. Select this if your platform is using |
@@ -24,8 +19,9 @@ config NFC_MICROREAD_I2C | |||
24 | Say N if unsure. | 19 | Say N if unsure. |
25 | 20 | ||
26 | config NFC_MICROREAD_MEI | 21 | config NFC_MICROREAD_MEI |
27 | tristate "NFC Microread MEI support" | 22 | tristate "Inside Secure Microread device support (MEI)" |
28 | depends on NFC_MICROREAD && NFC_MEI_PHY | 23 | depends on NFC_HCI && NFC_MEI_PHY |
24 | select NFC_MICROREAD | ||
29 | ---help--- | 25 | ---help--- |
30 | This module adds support for the mei interface of adapters using | 26 | This module adds support for the mei interface of adapters using |
31 | Inside microread chipsets. Select this if your microread chipset | 27 | Inside microread chipsets. Select this if your microread chipset |