Commit 7ca399f1 authored by Pratik Jain's avatar Pratik Jain Committed by Greg Kroah-Hartman

Staging:Comedi:comedi_compat32.c: Lindent changes

Recommended indentation by Lindent on file comedi_compat32.c
Signed-off-by: default avatarPratik Jain <pratik.jain0509@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b7369066
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
struct comedi32_chaninfo_struct { struct comedi32_chaninfo_struct {
unsigned int subdev; unsigned int subdev;
compat_uptr_t maxdata_list; /* 32-bit 'unsigned int *' */ compat_uptr_t maxdata_list; /* 32-bit 'unsigned int *' */
compat_uptr_t flaglist; /* 32-bit 'unsigned int *' */ compat_uptr_t flaglist; /* 32-bit 'unsigned int *' */
compat_uptr_t rangelist; /* 32-bit 'unsigned int *' */ compat_uptr_t rangelist; /* 32-bit 'unsigned int *' */
unsigned int unused[4]; unsigned int unused[4];
}; };
...@@ -57,16 +57,16 @@ struct comedi32_cmd_struct { ...@@ -57,16 +57,16 @@ struct comedi32_cmd_struct {
unsigned int scan_end_arg; unsigned int scan_end_arg;
unsigned int stop_src; unsigned int stop_src;
unsigned int stop_arg; unsigned int stop_arg;
compat_uptr_t chanlist; /* 32-bit 'unsigned int *' */ compat_uptr_t chanlist; /* 32-bit 'unsigned int *' */
unsigned int chanlist_len; unsigned int chanlist_len;
compat_uptr_t data; /* 32-bit 'short *' */ compat_uptr_t data; /* 32-bit 'short *' */
unsigned int data_len; unsigned int data_len;
}; };
struct comedi32_insn_struct { struct comedi32_insn_struct {
unsigned int insn; unsigned int insn;
unsigned int n; unsigned int n;
compat_uptr_t data; /* 32-bit 'unsigned int *' */ compat_uptr_t data; /* 32-bit 'unsigned int *' */
unsigned int subdev; unsigned int subdev;
unsigned int chanspec; unsigned int chanspec;
unsigned int unused[3]; unsigned int unused[3];
...@@ -74,7 +74,7 @@ struct comedi32_insn_struct { ...@@ -74,7 +74,7 @@ struct comedi32_insn_struct {
struct comedi32_insnlist_struct { struct comedi32_insnlist_struct {
unsigned int n_insns; unsigned int n_insns;
compat_uptr_t insns; /* 32-bit 'struct comedi_insn *' */ compat_uptr_t insns; /* 32-bit 'struct comedi_insn *' */
}; };
/* Handle translated ioctl. */ /* Handle translated ioctl. */
...@@ -194,7 +194,7 @@ static int get_compat_cmd(struct comedi_cmd __user *cmd, ...@@ -194,7 +194,7 @@ static int get_compat_cmd(struct comedi_cmd __user *cmd,
err |= __put_user(temp.uint, &cmd->stop_arg); err |= __put_user(temp.uint, &cmd->stop_arg);
err |= __get_user(temp.uptr, &cmd32->chanlist); err |= __get_user(temp.uptr, &cmd32->chanlist);
err |= __put_user((unsigned int __force *)compat_ptr(temp.uptr), err |= __put_user((unsigned int __force *)compat_ptr(temp.uptr),
&cmd->chanlist); &cmd->chanlist);
err |= __get_user(temp.uint, &cmd32->chanlist_len); err |= __get_user(temp.uint, &cmd32->chanlist_len);
err |= __put_user(temp.uint, &cmd->chanlist_len); err |= __put_user(temp.uint, &cmd->chanlist_len);
err |= __get_user(temp.uptr, &cmd32->data); err |= __get_user(temp.uptr, &cmd32->data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment