mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[media] v4l2-ctrls: use ptrs for all but the s32 type
Rather than having two unions for all types just keep 'val' and 'cur.val' and use the p_cur and p_new unions to access all others. The only reason for keeping 'val' and 'cur.val' is that it is used all over, so converting this as well would be a huge job. Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
9ea1b7a4b6
commit
2a9ec37311
9 changed files with 22 additions and 28 deletions
|
|
@ -187,17 +187,9 @@ struct v4l2_ctrl {
|
|||
};
|
||||
unsigned long flags;
|
||||
void *priv;
|
||||
union {
|
||||
s32 val;
|
||||
struct {
|
||||
s32 val;
|
||||
s64 val64;
|
||||
char *string;
|
||||
void *p;
|
||||
};
|
||||
union {
|
||||
s32 val;
|
||||
s64 val64;
|
||||
char *string;
|
||||
void *p;
|
||||
} cur;
|
||||
|
||||
union v4l2_ctrl_ptr p_new;
|
||||
|
|
|
|||
Loading…
Reference in a new issue