From fd114dfef80a2b7d621907d0765300bc44437122 Mon Sep 17 00:00:00 2001 From: John Klug Date: Tue, 29 May 2018 16:57:35 -0500 Subject: Prune some unused functions. --- io-module/mts-io.c | 54 ------------------------------------------------------ 1 file changed, 54 deletions(-) (limited to 'io-module') 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) -- cgit v1.2.3