From 7be1736916541d27aff1690dc06523e9154ad298 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 7 Dec 2021 12:14:14 -0600 Subject: mts-io version 4.8.2 for MTCDTIP-0.1 --- io-module/mts-io.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'io-module/mts-io.c') 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); } } -- cgit v1.2.3