diff options
author | Mike Fiore <mfiore@multitech.com> | 2014-08-25 12:59:56 -0500 |
---|---|---|
committer | Mike Fiore <mfiore@multitech.com> | 2014-08-25 12:59:56 -0500 |
commit | 19018dbbb35bd2940721ea6f04400a58c9644839 (patch) | |
tree | 8fcf138a00231d0a338e5d228f2ac768835e440d /io-module/spi.c | |
parent | f8a371233d759309cd58672192294180c7f8842e (diff) | |
download | mts-io-19018dbbb35bd2940721ea6f04400a58c9644839.tar.gz mts-io-19018dbbb35bd2940721ea6f04400a58c9644839.tar.bz2 mts-io-19018dbbb35bd2940721ea6f04400a58c9644839.zip |
initial support for MTR2D2 hardware
Diffstat (limited to 'io-module/spi.c')
-rw-r--r-- | io-module/spi.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/io-module/spi.c b/io-module/spi.c index 2da3f05..dfbdfe2 100644 --- a/io-module/spi.c +++ b/io-module/spi.c @@ -599,8 +599,8 @@ static int mts_spi_dc_dout_probe(struct spi_device *spi) { int tmp; - if (! has_daughter_card || mts_dc_product_id != MTDC_GPIOB_0_0) { - log_error("daughter card digital outputs not available"); + if (! has_accessory_card_port_1 || mts_ap1_product_id != MTDC_GPIOB_0_0) { + log_error("accessory card digital outputs not available"); return -ENODEV; } @@ -645,8 +645,8 @@ static int mts_spi_dc_din_probe(struct spi_device *spi) { int tmp; - if (! has_daughter_card || mts_dc_product_id != MTDC_GPIOB_0_0) { - log_error("daughter card digital inputs not available"); + if (! has_accessory_card_port_1 || mts_ap1_product_id != MTDC_GPIOB_0_0) { + log_error("accessory card digital inputs not available"); return -ENODEV; } @@ -688,8 +688,8 @@ static int mts_spi_dc_adc_probe(struct spi_device *spi) { int tmp; - if (! has_daughter_card || mts_dc_product_id != MTDC_GPIOB_0_0) { - log_error("daughter card analog to digital not available"); + if (! has_accessory_card_port_1 || mts_ap1_product_id != MTDC_GPIOB_0_0) { + log_error("accessory card analog to digital not available"); return -ENODEV; } |