diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-08-08 08:30:44 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-08 08:30:44 -0400 |
commit | 60b1ae0cd469825e4db0837f5f19c3a8084300c3 (patch) | |
tree | 563aafa40012d1bb8218987ffeb76c88743e18e5 /include | |
parent | 0a2d31b62dba9b5b92a38c67c9cc42630513662a (diff) | |
parent | 8c285645ab3b05942124020b5f0b89d3b539823a (diff) |
Merge branch 'fix/asoc' into for-linus
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cred.h | 11 | ||||
-rw-r--r-- | include/sound/wm8996.h (renamed from include/sound/wm8915.h) | 28 |
2 files changed, 20 insertions, 19 deletions
diff --git a/include/linux/cred.h b/include/linux/cred.h index 48e82af1159b..98f46efbe2d2 100644 --- a/include/linux/cred.h +++ b/include/linux/cred.h | |||
@@ -265,10 +265,11 @@ static inline void put_cred(const struct cred *_cred) | |||
265 | /** | 265 | /** |
266 | * current_cred - Access the current task's subjective credentials | 266 | * current_cred - Access the current task's subjective credentials |
267 | * | 267 | * |
268 | * Access the subjective credentials of the current task. | 268 | * Access the subjective credentials of the current task. RCU-safe, |
269 | * since nobody else can modify it. | ||
269 | */ | 270 | */ |
270 | #define current_cred() \ | 271 | #define current_cred() \ |
271 | (current->cred) | 272 | (*(__force struct cred **)¤t->cred) |
272 | 273 | ||
273 | /** | 274 | /** |
274 | * __task_cred - Access a task's objective credentials | 275 | * __task_cred - Access a task's objective credentials |
@@ -307,7 +308,7 @@ static inline void put_cred(const struct cred *_cred) | |||
307 | ({ \ | 308 | ({ \ |
308 | struct user_struct *__u; \ | 309 | struct user_struct *__u; \ |
309 | struct cred *__cred; \ | 310 | struct cred *__cred; \ |
310 | __cred = (struct cred *) current_cred(); \ | 311 | __cred = current_cred(); \ |
311 | __u = get_uid(__cred->user); \ | 312 | __u = get_uid(__cred->user); \ |
312 | __u; \ | 313 | __u; \ |
313 | }) | 314 | }) |
@@ -322,7 +323,7 @@ static inline void put_cred(const struct cred *_cred) | |||
322 | ({ \ | 323 | ({ \ |
323 | struct group_info *__groups; \ | 324 | struct group_info *__groups; \ |
324 | struct cred *__cred; \ | 325 | struct cred *__cred; \ |
325 | __cred = (struct cred *) current_cred(); \ | 326 | __cred = current_cred(); \ |
326 | __groups = get_group_info(__cred->group_info); \ | 327 | __groups = get_group_info(__cred->group_info); \ |
327 | __groups; \ | 328 | __groups; \ |
328 | }) | 329 | }) |
@@ -341,7 +342,7 @@ static inline void put_cred(const struct cred *_cred) | |||
341 | 342 | ||
342 | #define current_cred_xxx(xxx) \ | 343 | #define current_cred_xxx(xxx) \ |
343 | ({ \ | 344 | ({ \ |
344 | current->cred->xxx; \ | 345 | current_cred()->xxx; \ |
345 | }) | 346 | }) |
346 | 347 | ||
347 | #define current_uid() (current_cred_xxx(uid)) | 348 | #define current_uid() (current_cred_xxx(uid)) |
diff --git a/include/sound/wm8915.h b/include/sound/wm8996.h index 5817d762f6f3..ea4d88f43975 100644 --- a/include/sound/wm8915.h +++ b/include/sound/wm8996.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * linux/sound/wm8915.h -- Platform data for WM8915 | 2 | * linux/sound/wm8996.h -- Platform data for WM8996 |
3 | * | 3 | * |
4 | * Copyright 2011 Wolfson Microelectronics. PLC. | 4 | * Copyright 2011 Wolfson Microelectronics. PLC. |
5 | * | 5 | * |
@@ -8,14 +8,14 @@ | |||
8 | * published by the Free Software Foundation. | 8 | * published by the Free Software Foundation. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #ifndef __LINUX_SND_WM8903_H | 11 | #ifndef __LINUX_SND_WM8996_H |
12 | #define __LINUX_SND_WM8903_H | 12 | #define __LINUX_SND_WM8996_H |
13 | 13 | ||
14 | enum wm8915_inmode { | 14 | enum wm8996_inmode { |
15 | WM8915_DIFFERRENTIAL_1 = 0, /* IN1xP - IN1xN */ | 15 | WM8996_DIFFERRENTIAL_1 = 0, /* IN1xP - IN1xN */ |
16 | WM8915_INVERTING = 1, /* IN1xN */ | 16 | WM8996_INVERTING = 1, /* IN1xN */ |
17 | WM8915_NON_INVERTING = 2, /* IN1xP */ | 17 | WM8996_NON_INVERTING = 2, /* IN1xP */ |
18 | WM8915_DIFFERENTIAL_2 = 3, /* IN2xP - IN2xP */ | 18 | WM8996_DIFFERENTIAL_2 = 3, /* IN2xP - IN2xP */ |
19 | }; | 19 | }; |
20 | 20 | ||
21 | /** | 21 | /** |
@@ -25,23 +25,23 @@ enum wm8915_inmode { | |||
25 | * Configurations are expected to be generated using the ReTune Mobile | 25 | * Configurations are expected to be generated using the ReTune Mobile |
26 | * control panel in WISCE - see http://www.wolfsonmicro.com/wisce/ | 26 | * control panel in WISCE - see http://www.wolfsonmicro.com/wisce/ |
27 | */ | 27 | */ |
28 | struct wm8915_retune_mobile_config { | 28 | struct wm8996_retune_mobile_config { |
29 | const char *name; | 29 | const char *name; |
30 | int rate; | 30 | int rate; |
31 | u16 regs[20]; | 31 | u16 regs[20]; |
32 | }; | 32 | }; |
33 | 33 | ||
34 | #define WM8915_SET_DEFAULT 0x10000 | 34 | #define WM8996_SET_DEFAULT 0x10000 |
35 | 35 | ||
36 | struct wm8915_pdata { | 36 | struct wm8996_pdata { |
37 | int irq_flags; /** Set IRQ trigger flags; default active low */ | 37 | int irq_flags; /** Set IRQ trigger flags; default active low */ |
38 | 38 | ||
39 | int ldo_ena; /** GPIO for LDO1; -1 for none */ | 39 | int ldo_ena; /** GPIO for LDO1; -1 for none */ |
40 | 40 | ||
41 | int micdet_def; /** Default MICDET_SRC/HP1FB_SRC/MICD_BIAS */ | 41 | int micdet_def; /** Default MICDET_SRC/HP1FB_SRC/MICD_BIAS */ |
42 | 42 | ||
43 | enum wm8915_inmode inl_mode; | 43 | enum wm8996_inmode inl_mode; |
44 | enum wm8915_inmode inr_mode; | 44 | enum wm8996_inmode inr_mode; |
45 | 45 | ||
46 | u32 spkmute_seq; /** Value for register 0x802 */ | 46 | u32 spkmute_seq; /** Value for register 0x802 */ |
47 | 47 | ||
@@ -49,7 +49,7 @@ struct wm8915_pdata { | |||
49 | u32 gpio_default[5]; | 49 | u32 gpio_default[5]; |
50 | 50 | ||
51 | int num_retune_mobile_cfgs; | 51 | int num_retune_mobile_cfgs; |
52 | struct wm8915_retune_mobile_config *retune_mobile_cfgs; | 52 | struct wm8996_retune_mobile_config *retune_mobile_cfgs; |
53 | }; | 53 | }; |
54 | 54 | ||
55 | #endif | 55 | #endif |