diff options
author | John Klug <john.klug@multitech.com> | 2021-12-07 12:14:14 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2021-12-07 12:33:29 -0600 |
commit | 7be1736916541d27aff1690dc06523e9154ad298 (patch) | |
tree | 1233f207d6e538075ed48d92d037a28994be7cff /io-module/mts-io.c | |
parent | f2b8da6cde5885626f790eaaa851fcac529842d3 (diff) | |
download | mts-io-7be1736916541d27aff1690dc06523e9154ad298.tar.gz mts-io-7be1736916541d27aff1690dc06523e9154ad298.tar.bz2 mts-io-7be1736916541d27aff1690dc06523e9154ad298.zip |
mts-io version 4.8.2 for MTCDTIP-0.14.8.2
Diffstat (limited to 'io-module/mts-io.c')
-rw-r--r-- | io-module/mts-io.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c index 8b1fbec..2ccdab5 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -973,7 +973,8 @@ mts_id_eeprom_load(void) gpio_pins = gpio_pins_mtcdt_0_1; set_buttons(default_buttons); log_info("detected board %s", tmp); - } else if ((tmp=HW_VERSION_MTCDT_0_2),(mts_hw_version=MTCDT_0_2),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0) { + } else if (((tmp=HW_VERSION_MTCDT_0_2),(mts_hw_version=MTCDT_0_2),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0) || + ((tmp=HW_VERSION_MTCDTIP_0_1),(mts_hw_version=MTCDTIP_0_1),strncmp(id_eeprom.hw_version, tmp, strlen(tmp)) == 0)) { need_append = 0; current_blength = attr_blength = sizeof mtcdt_0_2_platform_attributes; current_blength -= sizeof(struct attribute *); /* Length without terminating NULL */ @@ -1361,7 +1362,9 @@ static int __init mts_io_init(void) if (pin->capability == 0 || DEVICE_CAPA(id_eeprom.capa,pin->capability)) { ret = gpio_request_one(pin->pin.gpio, pin->pin.flags, pin->pin.label); if (ret) - log_debug("could not request pin %s (%d) but it could have already been requested under a different pin name", pin->name, ret); + dev_dbg(&mts_io_platform_device->dev, + "could not request pin %s (%d) but it could have already been requested under a different pin name", + pin->name, ret); } } |