diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-26 06:04:52 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-27 05:34:39 -0500 |
commit | 816a11d5ced501d368fabe09172f3d62744e8b53 (patch) | |
tree | e4f3a0879ad41c7bc06b2e8f2b65a38502c44f4f /net/bluetooth/hidp | |
parent | 9b27f350688c9399da10c2b888c4044c2c1bd923 (diff) |
Bluetooth: Use kernel int types instead of ones from stdint.h
u8/__u8/u32/etc should be used in the kernel instead of stdint.h types.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hidp')
-rw-r--r-- | net/bluetooth/hidp/sock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/hidp/sock.c b/net/bluetooth/hidp/sock.c index 178ac7f127ad..73a32d705c1f 100644 --- a/net/bluetooth/hidp/sock.c +++ b/net/bluetooth/hidp/sock.c | |||
@@ -160,10 +160,10 @@ static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigne | |||
160 | { | 160 | { |
161 | if (cmd == HIDPGETCONNLIST) { | 161 | if (cmd == HIDPGETCONNLIST) { |
162 | struct hidp_connlist_req cl; | 162 | struct hidp_connlist_req cl; |
163 | uint32_t uci; | 163 | u32 uci; |
164 | int err; | 164 | int err; |
165 | 165 | ||
166 | if (get_user(cl.cnum, (uint32_t __user *) arg) || | 166 | if (get_user(cl.cnum, (u32 __user *) arg) || |
167 | get_user(uci, (u32 __user *) (arg + 4))) | 167 | get_user(uci, (u32 __user *) (arg + 4))) |
168 | return -EFAULT; | 168 | return -EFAULT; |
169 | 169 | ||
@@ -174,7 +174,7 @@ static int hidp_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigne | |||
174 | 174 | ||
175 | err = hidp_get_connlist(&cl); | 175 | err = hidp_get_connlist(&cl); |
176 | 176 | ||
177 | if (!err && put_user(cl.cnum, (uint32_t __user *) arg)) | 177 | if (!err && put_user(cl.cnum, (u32 __user *) arg)) |
178 | err = -EFAULT; | 178 | err = -EFAULT; |
179 | 179 | ||
180 | return err; | 180 | return err; |