#include #include #include #include static int cmdline_proc_show(struct seq_file *m, void *v) { seq_printf(m, "%s\n", saved_command_line); return 0; } static int cmdline_proc_open(struct inode *inode, struct file *file) { return single_open(file, cmdline_proc_show, NULL); } static const struct file_operations cmdline_proc_fops = { .open = cmdline_proc_open, .read = seq_read, .llseek = seq_lseek, .release = single_release, }; static int __init proc_cmdline_init(void) { proc_create("cmdline", 0, NULL, &cmdline_proc_fops); return 0; } fs_initcall(proc_cmdline_init);
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2016-10-21 16:40:05 +0800
committerMark Brown <broonie@kernel.org>2016-10-24 17:49:14 +0100
commite98d5fef8556f1da7f903fd1908feed84bb0f90d (patch)
tree95a1268df894d6150ee31f5e97cbcb0c0ab32cc4 /net/x25/af_x25.c
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: tps6507x: Drop pointless static qualifier for *reg_data variable
There is no need to use static for this local variable. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'net/x25/af_x25.c')