Loading drivers/parport/procfs.c +29 −29 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ #define PARPORT_MIN_SPINTIME_VALUE 1 #define PARPORT_MAX_SPINTIME_VALUE 1000 static int do_active_device(ctl_table *table, int write, static int do_active_device(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { struct parport *port = (struct parport *)table->extra1; Loading Loading @@ -68,7 +68,7 @@ static int do_active_device(ctl_table *table, int write, } #ifdef CONFIG_PARPORT_1284 static int do_autoprobe(ctl_table *table, int write, static int do_autoprobe(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { struct parport_device_info *info = table->extra2; Loading Loading @@ -110,7 +110,7 @@ static int do_autoprobe(ctl_table *table, int write, } #endif /* IEEE1284.3 support. */ static int do_hardware_base_addr (ctl_table *table, int write, static int do_hardware_base_addr(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { Loading Loading @@ -138,7 +138,7 @@ static int do_hardware_base_addr (ctl_table *table, int write, return copy_to_user(result, buffer, len) ? -EFAULT : 0; } static int do_hardware_irq (ctl_table *table, int write, static int do_hardware_irq(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { Loading Loading @@ -166,7 +166,7 @@ static int do_hardware_irq (ctl_table *table, int write, return copy_to_user(result, buffer, len) ? -EFAULT : 0; } static int do_hardware_dma (ctl_table *table, int write, static int do_hardware_dma(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { Loading Loading @@ -194,7 +194,7 @@ static int do_hardware_dma (ctl_table *table, int write, return copy_to_user(result, buffer, len) ? -EFAULT : 0; } static int do_hardware_modes (ctl_table *table, int write, static int do_hardware_modes(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { Loading Loading @@ -255,11 +255,11 @@ PARPORT_MAX_SPINTIME_VALUE; struct parport_sysctl_table { struct ctl_table_header *sysctl_header; ctl_table vars[12]; ctl_table device_dir[2]; ctl_table port_dir[2]; ctl_table parport_dir[2]; ctl_table dev_dir[2]; struct ctl_table vars[12]; struct ctl_table device_dir[2]; struct ctl_table port_dir[2]; struct ctl_table parport_dir[2]; struct ctl_table dev_dir[2]; }; static const struct parport_sysctl_table parport_sysctl_template = { Loading Loading @@ -369,12 +369,12 @@ static const struct parport_sysctl_table parport_sysctl_template = { struct parport_device_sysctl_table { struct ctl_table_header *sysctl_header; ctl_table vars[2]; ctl_table device_dir[2]; ctl_table devices_root_dir[2]; ctl_table port_dir[2]; ctl_table parport_dir[2]; ctl_table dev_dir[2]; struct ctl_table vars[2]; struct ctl_table device_dir[2]; struct ctl_table devices_root_dir[2]; struct ctl_table port_dir[2]; struct ctl_table parport_dir[2]; struct ctl_table dev_dir[2]; }; static const struct parport_device_sysctl_table Loading Loading @@ -422,10 +422,10 @@ parport_device_sysctl_template = { struct parport_default_sysctl_table { struct ctl_table_header *sysctl_header; ctl_table vars[3]; ctl_table default_dir[2]; ctl_table parport_dir[2]; ctl_table dev_dir[2]; struct ctl_table vars[3]; struct ctl_table default_dir[2]; struct ctl_table parport_dir[2]; struct ctl_table dev_dir[2]; }; static struct parport_default_sysctl_table Loading Loading
drivers/parport/procfs.c +29 −29 Original line number Diff line number Diff line Loading @@ -31,7 +31,7 @@ #define PARPORT_MIN_SPINTIME_VALUE 1 #define PARPORT_MAX_SPINTIME_VALUE 1000 static int do_active_device(ctl_table *table, int write, static int do_active_device(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { struct parport *port = (struct parport *)table->extra1; Loading Loading @@ -68,7 +68,7 @@ static int do_active_device(ctl_table *table, int write, } #ifdef CONFIG_PARPORT_1284 static int do_autoprobe(ctl_table *table, int write, static int do_autoprobe(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { struct parport_device_info *info = table->extra2; Loading Loading @@ -110,7 +110,7 @@ static int do_autoprobe(ctl_table *table, int write, } #endif /* IEEE1284.3 support. */ static int do_hardware_base_addr (ctl_table *table, int write, static int do_hardware_base_addr(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { Loading Loading @@ -138,7 +138,7 @@ static int do_hardware_base_addr (ctl_table *table, int write, return copy_to_user(result, buffer, len) ? -EFAULT : 0; } static int do_hardware_irq (ctl_table *table, int write, static int do_hardware_irq(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { Loading Loading @@ -166,7 +166,7 @@ static int do_hardware_irq (ctl_table *table, int write, return copy_to_user(result, buffer, len) ? -EFAULT : 0; } static int do_hardware_dma (ctl_table *table, int write, static int do_hardware_dma(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { Loading Loading @@ -194,7 +194,7 @@ static int do_hardware_dma (ctl_table *table, int write, return copy_to_user(result, buffer, len) ? -EFAULT : 0; } static int do_hardware_modes (ctl_table *table, int write, static int do_hardware_modes(struct ctl_table *table, int write, void __user *result, size_t *lenp, loff_t *ppos) { Loading Loading @@ -255,11 +255,11 @@ PARPORT_MAX_SPINTIME_VALUE; struct parport_sysctl_table { struct ctl_table_header *sysctl_header; ctl_table vars[12]; ctl_table device_dir[2]; ctl_table port_dir[2]; ctl_table parport_dir[2]; ctl_table dev_dir[2]; struct ctl_table vars[12]; struct ctl_table device_dir[2]; struct ctl_table port_dir[2]; struct ctl_table parport_dir[2]; struct ctl_table dev_dir[2]; }; static const struct parport_sysctl_table parport_sysctl_template = { Loading Loading @@ -369,12 +369,12 @@ static const struct parport_sysctl_table parport_sysctl_template = { struct parport_device_sysctl_table { struct ctl_table_header *sysctl_header; ctl_table vars[2]; ctl_table device_dir[2]; ctl_table devices_root_dir[2]; ctl_table port_dir[2]; ctl_table parport_dir[2]; ctl_table dev_dir[2]; struct ctl_table vars[2]; struct ctl_table device_dir[2]; struct ctl_table devices_root_dir[2]; struct ctl_table port_dir[2]; struct ctl_table parport_dir[2]; struct ctl_table dev_dir[2]; }; static const struct parport_device_sysctl_table Loading Loading @@ -422,10 +422,10 @@ parport_device_sysctl_template = { struct parport_default_sysctl_table { struct ctl_table_header *sysctl_header; ctl_table vars[3]; ctl_table default_dir[2]; ctl_table parport_dir[2]; ctl_table dev_dir[2]; struct ctl_table vars[3]; struct ctl_table default_dir[2]; struct ctl_table parport_dir[2]; struct ctl_table dev_dir[2]; }; static struct parport_default_sysctl_table Loading