Skip to content

Commit

Permalink
mips: lasat: sysctl: Convert use of typedef ctl_table to struct ctl_t…
Browse files Browse the repository at this point in the history
…able

This typedef is unnecessary and should just be removed.

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Jiri Kosina <trivial@kernel.org>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/5460/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Joe Perches authored and Ralf Baechle committed Jun 17, 2013
1 parent b806113 commit d3478d5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions arch/mips/lasat/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@


/* And the same for proc */
int proc_dolasatstring(ctl_table *table, int write,
int proc_dolasatstring(struct ctl_table *table, int write,
void *buffer, size_t *lenp, loff_t *ppos)
{
int r;
Expand All @@ -54,7 +54,7 @@ int proc_dolasatstring(ctl_table *table, int write,
}

/* proc function to write EEPROM after changing int entry */
int proc_dolasatint(ctl_table *table, int write,
int proc_dolasatint(struct ctl_table *table, int write,
void *buffer, size_t *lenp, loff_t *ppos)
{
int r;
Expand All @@ -72,7 +72,7 @@ int proc_dolasatint(ctl_table *table, int write,
static int rtctmp;

/* proc function to read/write RealTime Clock */
int proc_dolasatrtc(ctl_table *table, int write,
int proc_dolasatrtc(struct ctl_table *table, int write,
void *buffer, size_t *lenp, loff_t *ppos)
{
struct timespec ts;
Expand All @@ -97,7 +97,7 @@ int proc_dolasatrtc(ctl_table *table, int write,
#endif

#ifdef CONFIG_INET
int proc_lasat_ip(ctl_table *table, int write,
int proc_lasat_ip(struct ctl_table *table, int write,
void *buffer, size_t *lenp, loff_t *ppos)
{
unsigned int ip;
Expand Down Expand Up @@ -157,7 +157,7 @@ int proc_lasat_ip(ctl_table *table, int write,
}
#endif

int proc_lasat_prid(ctl_table *table, int write,
int proc_lasat_prid(struct ctl_table *table, int write,
void *buffer, size_t *lenp, loff_t *ppos)
{
int r;
Expand All @@ -176,7 +176,7 @@ int proc_lasat_prid(ctl_table *table, int write,

extern int lasat_boot_to_service;

static ctl_table lasat_table[] = {
static struct ctl_table lasat_table[] = {
{
.procname = "cpu-hz",
.data = &lasat_board_info.li_cpu_hz,
Expand Down Expand Up @@ -262,7 +262,7 @@ static ctl_table lasat_table[] = {
{}
};

static ctl_table lasat_root_table[] = {
static struct ctl_table lasat_root_table[] = {
{
.procname = "lasat",
.mode = 0555,
Expand Down

0 comments on commit d3478d5

Please sign in to comment.