/* * sysctl_net_llc.c: sysctl interface to LLC net subsystem. * * Arnaldo Carvalho de Melo */ #include #include #include #include #include #ifndef CONFIG_SYSCTL #error This file should not be compiled without CONFIG_SYSCTL defined #endif static struct ctl_table llc2_timeout_table[] = { { .procname = "ack", .data = &sysctl_llc2_ack_timeout, .maxlen = sizeof(sysctl_llc2_ack_timeout), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, { .procname = "busy", .data = &sysctl_llc2_busy_timeout, .maxlen = sizeof(sysctl_llc2_busy_timeout), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, { .procname = "p", .data = &sysctl_llc2_p_timeout, .maxlen = sizeof(sysctl_llc2_p_timeout), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, { .procname = "rej", .data = &sysctl_llc2_rej_timeout, .maxlen = sizeof(sysctl_llc2_rej_timeout), .mode = 0644, .proc_handler = proc_dointvec_jiffies, }, { }, }; static struct ctl_table llc_station_table[] = { { }, }; static struct ctl_table_header *llc2_timeout_header; static struct ctl_table_header *llc_station_header; int __init llc_sysctl_init(void) { llc2_timeout_header = register_net_sysctl(&init_net, "net/llc/llc2/timeout", llc2_timeout_table); llc_station_header = register_net_sysctl(&init_net, "net/llc/station", llc_station_table); if (!llc2_timeout_header || !llc_station_header) { llc_sysctl_exit(); return -ENOMEM; } return 0; } void llc_sysctl_exit(void) { if (llc2_timeout_header) { unregister_net_sysctl_table(llc2_timeout_header); llc2_timeout_header = NULL; } if (llc_station_header) { unregister_net_sysctl_table(llc_station_header); llc_station_header = NULL; } } 9e8b26b59234569d926c246e45f1'>treecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-11-23 21:13:20 +0800
committerMark Brown <broonie@kernel.org>2016-11-23 15:46:43 +0000
commit15cc95c442859e8b26b59234569d926c246e45f1 (patch)
treebee8b38a081accdde57f850f4f5566a13c6a4e37 /drivers/usb/chipidea
parentcac28ae60e3dae1814f12f0d24d041a67153692c (diff)
regulator: twl: Remove unused fields from struct twlreg_info
The min_mV, max_mV and flags fields are not used, so remove them. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/usb/chipidea')