[PATCH 2/2] gcn-gqr: remove "struct file *" argument of proc_dointvec() call
From: Albert Herranz
Date: Thu Oct 01 2009 - 13:12:08 EST
Adhere to the function parameter changes introduced in
commit 8d65af789f3e2cf4cfbdbf71a0f7a61ebcd41d38.
While at it, use 'struct ctl_table' instead of 'ctl_table'.
Signed-off-by: Albert Herranz <albert_herranz@xxxxxxxx>
---
drivers/misc/gcn-gqr.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/misc/gcn-gqr.c b/drivers/misc/gcn-gqr.c
index 66482653f8ef..ff390eb79a06 100644
--- a/drivers/misc/gcn-gqr.c
+++ b/drivers/misc/gcn-gqr.c
@@ -37,7 +37,7 @@ static struct ctl_table_header *gqr_table_header;
#define MFSPR_CASE(i) case (i): (*((u32 *)table->data) = mfspr(SPR_GQR##i))
#define MTSPR_CASE(i) case (i): mtspr(SPR_GQR##i, *((u32 *)table->data))
-static int proc_dogqr(ctl_table *table, int write, struct file *file,
+static int proc_dogqr(struct ctl_table *table, int write,
void __user *buffer, size_t *lenp, loff_t *ppos)
{
int r;
@@ -57,7 +57,7 @@ static int proc_dogqr(ctl_table *table, int write,
struct file *file,
}
}
- r = proc_dointvec(table, write, file, buffer, lenp, ppos);
+ r = proc_dointvec(table, write, buffer, lenp, ppos);
if ((r == 0) && write) { /* if they are writing, update the reg */
switch (table->data - (void *)gqr_values) {
@@ -86,7 +86,7 @@ static int proc_dogqr(ctl_table *table, int write,
struct file *file,
.proc_handler = &proc_dogqr \
}
-static ctl_table gqr_members[] = {
+static struct ctl_table gqr_members[] = {
DECLARE_GQR(0),
DECLARE_GQR(1),
DECLARE_GQR(2),
@@ -98,7 +98,7 @@ static ctl_table gqr_members[] = {
{ .ctl_name = 0 }
};
-static ctl_table gqr_table[] = {
+static struct ctl_table gqr_table[] = {
{
.ctl_name = CTL_UNNUMBERED,
.procname = "gqr",
--
2.38.1