Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 331198
b: refs/heads/master
c: e169c9b
h: refs/heads/master
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Oct 1, 2012
1 parent 78de441 commit 802c665
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9064cb5e03b1502782d314b03ea3cbe09992f9a7
refs/heads/master: e169c9baa31b23d8e0641359772c47291c485c14
4 changes: 2 additions & 2 deletions trunk/drivers/media/i2c/m5mols/m5mols.h
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,12 @@ static inline struct v4l2_subdev *to_sd(struct v4l2_ctrl *ctrl)
static inline void m5mols_set_ctrl_mode(struct v4l2_ctrl *ctrl,
unsigned int mode)
{
ctrl->priv = (void *)mode;
ctrl->priv = (void *)(uintptr_t)mode;
}

static inline unsigned int m5mols_get_ctrl_mode(struct v4l2_ctrl *ctrl)
{
return (unsigned int)ctrl->priv;
return (unsigned int)(uintptr_t)ctrl->priv;
}

#endif /* M5MOLS_H */
4 changes: 2 additions & 2 deletions trunk/drivers/media/i2c/m5mols/m5mols_controls.c
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ static int m5mols_s_ctrl(struct v4l2_ctrl *ctrl)
return 0;
}

v4l2_dbg(1, m5mols_debug, sd, "%s: %s, val: %d, priv: %#x\n",
__func__, ctrl->name, ctrl->val, (int)ctrl->priv);
v4l2_dbg(1, m5mols_debug, sd, "%s: %s, val: %d, priv: %p\n",
__func__, ctrl->name, ctrl->val, ctrl->priv);

if (ctrl_mode && ctrl_mode != info->mode) {
ret = m5mols_set_mode(info, ctrl_mode);
Expand Down

0 comments on commit 802c665

Please sign in to comment.