This data item does not seem to be used anywhere. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx> --- drivers/input/rmi4/rmi_f11.c | 37 ------------------------------------- include/linux/rmi.h | 1 - 2 files changed, 38 deletions(-) diff --git a/drivers/input/rmi4/rmi_f11.c b/drivers/input/rmi4/rmi_f11.c index 717e2d8..da3fd2a 100644 --- a/drivers/input/rmi4/rmi_f11.c +++ b/drivers/input/rmi4/rmi_f11.c @@ -832,42 +832,6 @@ enum finger_state_values { F11_RESERVED = 0x03 }; -static ssize_t rmi_f11_relreport_show(struct device *dev, - struct device_attribute *attr, - char *buf) -{ - struct rmi_function *fn = to_rmi_function(dev); - struct f11_data *data = fn->data; - - return snprintf(buf, PAGE_SIZE, "%u\n", - data->sensors[0].axis_align.rel_report_enabled); -} - -static ssize_t rmi_f11_relreport_store(struct device *dev, - struct device_attribute *attr, - const char *buf, - size_t count) -{ - struct rmi_function *fn = to_rmi_function(dev); - struct f11_data *data = fn->data; - unsigned int new_value; - int error; - - error = kstrtouint(buf, 0, &new_value); - if (error) - return error; - - if (new_value > 1) - return -ERANGE; - - data->sensors[0].axis_align.rel_report_enabled = new_value; - - return count; -} - -static DEVICE_ATTR(relreport, RMI_RW_ATTR, - rmi_f11_relreport_show, rmi_f11_relreport_store); - static ssize_t rmi_f11_rezero_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) @@ -906,7 +870,6 @@ static ssize_t rmi_f11_rezero_store(struct device *dev, static DEVICE_ATTR(rezero, RMI_WO_ATTR, NULL, rmi_f11_rezero_store); static struct attribute *rmi_f11_attrs[] = { - &dev_attr_relreport.attr, &dev_attr_rezero.attr, NULL }; diff --git a/include/linux/rmi.h b/include/linux/rmi.h index d4e1438..3969e61 100644 --- a/include/linux/rmi.h +++ b/include/linux/rmi.h @@ -73,7 +73,6 @@ enum rmi_attn_polarity { * automatically enabled for this sensor. */ struct rmi_f11_2d_axis_alignment { - bool rel_report_enabled; u32 swap_axes; /* boolean, but u32 is needed by debugfs API */ u32 flip_x; /* boolean */ u32 flip_y; /* boolean */ -- 1.7.11.7 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html