mirror of https://gitee.com/openkylin/linux.git
staging: dgrp: remove rawreadok module option
The functionality behind this option has been removed in the driver so remove the config option to set/unset it. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
e3224111b3
commit
57cf50acbf
|
@ -31,7 +31,6 @@
|
|||
* All global storage allocation.
|
||||
************************************************************************/
|
||||
|
||||
extern int dgrp_rawreadok; /* Allow raw writing of input */
|
||||
extern int dgrp_register_cudevices; /* enable legacy cu devices */
|
||||
extern int dgrp_register_prdevices; /* enable transparent print devices */
|
||||
extern int dgrp_poll_tick; /* Poll interval - in ms */
|
||||
|
|
|
@ -39,14 +39,10 @@ MODULE_VERSION(DIGI_VERSION);
|
|||
struct list_head nd_struct_list;
|
||||
struct dgrp_poll_data dgrp_poll_data;
|
||||
|
||||
int dgrp_rawreadok = 1; /* Bypass flipbuf on input */
|
||||
int dgrp_register_cudevices = 1;/* Turn on/off registering legacy cu devices */
|
||||
int dgrp_register_prdevices = 1;/* Turn on/off registering transparent print */
|
||||
int dgrp_poll_tick = 20; /* Poll interval - in ms */
|
||||
|
||||
module_param_named(rawreadok, dgrp_rawreadok, int, 0644);
|
||||
MODULE_PARM_DESC(rawreadok, "Bypass flip buffers on input");
|
||||
|
||||
module_param_named(register_cudevices, dgrp_register_cudevices, int, 0644);
|
||||
MODULE_PARM_DESC(register_cudevices, "Turn on/off registering legacy cu devices");
|
||||
|
||||
|
|
|
@ -629,8 +629,6 @@ static int info_proc_show(struct seq_file *m, void *v)
|
|||
{
|
||||
seq_printf(m, "version: %s\n", DIGI_VERSION);
|
||||
seq_puts(m, "register_with_sysfs: 1\n");
|
||||
seq_printf(m, "rawreadok: 0x%08x\t(%d)\n",
|
||||
dgrp_rawreadok, dgrp_rawreadok);
|
||||
seq_printf(m, "pollrate: 0x%08x\t(%d)\n",
|
||||
dgrp_poll_tick, dgrp_poll_tick);
|
||||
|
||||
|
|
|
@ -55,23 +55,6 @@ static DEVICE_ATTR(register_with_sysfs, 0400,
|
|||
dgrp_class_register_with_sysfs_show, NULL);
|
||||
|
||||
|
||||
static ssize_t dgrp_class_rawreadok_show(struct device *c,
|
||||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
{
|
||||
return snprintf(buf, PAGE_SIZE, "%d\n", dgrp_rawreadok);
|
||||
}
|
||||
static ssize_t dgrp_class_rawreadok_store(struct device *c,
|
||||
struct device_attribute *attr,
|
||||
const char *buf, size_t count)
|
||||
{
|
||||
sscanf(buf, "0x%x\n", &dgrp_rawreadok);
|
||||
return count;
|
||||
}
|
||||
static DEVICE_ATTR(rawreadok, 0600, dgrp_class_rawreadok_show,
|
||||
dgrp_class_rawreadok_store);
|
||||
|
||||
|
||||
static ssize_t dgrp_class_pollrate_show(struct device *c,
|
||||
struct device_attribute *attr,
|
||||
char *buf)
|
||||
|
@ -91,7 +74,6 @@ static DEVICE_ATTR(pollrate, 0600, dgrp_class_pollrate_show,
|
|||
|
||||
static struct attribute *dgrp_sysfs_global_settings_entries[] = {
|
||||
&dev_attr_pollrate.attr,
|
||||
&dev_attr_rawreadok.attr,
|
||||
&dev_attr_register_with_sysfs.attr,
|
||||
NULL
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue