mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
net: Convert uses of typedef ctl_table to struct ctl_table
Reduce the uses of this unnecessary typedef.
Done via perl script:
$ git grep --name-only -w ctl_table net | \
xargs perl -p -i -e '\
sub trim { my ($local) = @_; $local =~ s/(^\s+|\s+$)//g; return $local; } \
s/\b(?<!struct\s)ctl_table\b(\s*\*\s*|\s+\w+)/"struct ctl_table " . trim($1)/ge'
Reflow the modified lines that now exceed 80 columns.
Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
194f4a6df2
commit
fe2c6338fd
32 changed files with 86 additions and 85 deletions
|
|
@ -73,7 +73,7 @@ static int min_lap_keepalive_time = 100; /* 100us */
|
|||
/* For other sysctl, I've no idea of the range. Maybe Dag could help
|
||||
* us on that - Jean II */
|
||||
|
||||
static int do_devname(ctl_table *table, int write,
|
||||
static int do_devname(struct ctl_table *table, int write,
|
||||
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||
{
|
||||
int ret;
|
||||
|
|
@ -90,7 +90,7 @@ static int do_devname(ctl_table *table, int write,
|
|||
}
|
||||
|
||||
|
||||
static int do_discovery(ctl_table *table, int write,
|
||||
static int do_discovery(struct ctl_table *table, int write,
|
||||
void __user *buffer, size_t *lenp, loff_t *ppos)
|
||||
{
|
||||
int ret;
|
||||
|
|
@ -111,7 +111,7 @@ static int do_discovery(ctl_table *table, int write,
|
|||
}
|
||||
|
||||
/* One file */
|
||||
static ctl_table irda_table[] = {
|
||||
static struct ctl_table irda_table[] = {
|
||||
{
|
||||
.procname = "discovery",
|
||||
.data = &sysctl_discovery,
|
||||
|
|
|
|||
Loading…
Reference in a new issue