diff options
author | John Klug <john.klug@multitech.com> | 2018-05-29 16:57:35 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-05-29 16:57:35 -0500 |
commit | fd114dfef80a2b7d621907d0765300bc44437122 (patch) | |
tree | 02afc86b476e6a21d75328560b5abf84f659ac1b /io-module | |
parent | b91ccf500e8faed3771fe9bf0f4c99c784c42445 (diff) | |
download | mts-io-fd114dfef80a2b7d621907d0765300bc44437122.tar.gz mts-io-fd114dfef80a2b7d621907d0765300bc44437122.tar.bz2 mts-io-fd114dfef80a2b7d621907d0765300bc44437122.zip |
Prune some unused functions.2.0.6
Diffstat (limited to 'io-module')
-rw-r--r-- | io-module/mts-io.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/io-module/mts-io.c b/io-module/mts-io.c index 45ef966..31f69f9 100644 --- a/io-module/mts-io.c +++ b/io-module/mts-io.c @@ -167,60 +167,6 @@ has_radio(const char *product_id, size_t len) return 1; /* Product id invalid or empty, so instantiate a radio anyway */ } - -static DEVICE_ATTR_MTS(dev_attr_reset_monitor_intervals, "reset-monitor-intervals", - mts_attr_show_reset_monitor_intervals, mts_attr_store_reset_monitor_intervals); - -static ssize_t mts_attr_show_reset_monitor(struct device *dev, - struct device_attribute *attr, - char *buf) -{ - int ret; - - mutex_lock(&mts_io_mutex); - - ret = sprintf(buf, "%d %d %d %d\n", reset_pid, reset_short_signal, reset_long_signal, reset_extra_long_signal); - - mutex_unlock(&mts_io_mutex); - - return ret; -} - -static ssize_t mts_attr_store_reset_monitor(struct device *dev, - struct device_attribute *attr, const char *buf, size_t count) -{ - pid_t pid; - int short_signal; - int long_signal; - int extra_long_signal; - int result = sscanf(buf, "%i %i %i %i", &pid, &short_signal, &long_signal, &extra_long_signal); - - if (result < 3 || result > 4) { - return -EINVAL; - } - - if(result == 3) { - mutex_lock(&mts_io_mutex); - - reset_pid = pid; - reset_short_signal = short_signal; - reset_long_signal = long_signal; - - mutex_unlock(&mts_io_mutex); - } else { - mutex_lock(&mts_io_mutex); - - reset_pid = pid; - reset_short_signal = short_signal; - reset_long_signal = long_signal; - reset_extra_long_signal = extra_long_signal; - - mutex_unlock(&mts_io_mutex); - } - - return count; -} - /* active-low socket modem reset */ static ssize_t mts_attr_store_radio_reset(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) |