[media] lm3560: keep style for the comments
Let's keep the style for all comments in the code, namely using small letters whenever it's possible. There is no functional change. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
This commit is contained in:
parent
bc46263b84
commit
d1166b0f17
1 changed files with 8 additions and 5 deletions
|
@ -36,7 +36,7 @@
|
||||||
#define REG_FLAG 0xd0
|
#define REG_FLAG 0xd0
|
||||||
#define REG_CONFIG1 0xe0
|
#define REG_CONFIG1 0xe0
|
||||||
|
|
||||||
/* Fault Mask */
|
/* fault mask */
|
||||||
#define FAULT_TIMEOUT (1<<0)
|
#define FAULT_TIMEOUT (1<<0)
|
||||||
#define FAULT_OVERTEMP (1<<1)
|
#define FAULT_OVERTEMP (1<<1)
|
||||||
#define FAULT_SHORT_CIRCUIT (1<<2)
|
#define FAULT_SHORT_CIRCUIT (1<<2)
|
||||||
|
@ -47,7 +47,8 @@ enum led_enable {
|
||||||
MODE_FLASH = 0x3,
|
MODE_FLASH = 0x3,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* struct lm3560_flash
|
/**
|
||||||
|
* struct lm3560_flash
|
||||||
*
|
*
|
||||||
* @pdata: platform data
|
* @pdata: platform data
|
||||||
* @regmap: reg. map for i2c
|
* @regmap: reg. map for i2c
|
||||||
|
@ -162,7 +163,7 @@ static int lm3560_flash_brt_ctrl(struct lm3560_flash *flash,
|
||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* V4L2 controls */
|
/* v4l2 controls */
|
||||||
static int lm3560_get_ctrl(struct v4l2_ctrl *ctrl, enum lm3560_led_id led_no)
|
static int lm3560_get_ctrl(struct v4l2_ctrl *ctrl, enum lm3560_led_id led_no)
|
||||||
{
|
{
|
||||||
struct lm3560_flash *flash = to_lm3560_flash(ctrl, led_no);
|
struct lm3560_flash *flash = to_lm3560_flash(ctrl, led_no);
|
||||||
|
@ -291,6 +292,7 @@ static int lm3560_init_controls(struct lm3560_flash *flash,
|
||||||
const struct v4l2_ctrl_ops *ops = &lm3560_led_ctrl_ops[led_no];
|
const struct v4l2_ctrl_ops *ops = &lm3560_led_ctrl_ops[led_no];
|
||||||
|
|
||||||
v4l2_ctrl_handler_init(hdl, 8);
|
v4l2_ctrl_handler_init(hdl, 8);
|
||||||
|
|
||||||
/* flash mode */
|
/* flash mode */
|
||||||
v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_LED_MODE,
|
v4l2_ctrl_new_std_menu(hdl, ops, V4L2_CID_FLASH_LED_MODE,
|
||||||
V4L2_FLASH_LED_MODE_TORCH, ~0x7,
|
V4L2_FLASH_LED_MODE_TORCH, ~0x7,
|
||||||
|
@ -303,6 +305,7 @@ static int lm3560_init_controls(struct lm3560_flash *flash,
|
||||||
|
|
||||||
/* flash strobe */
|
/* flash strobe */
|
||||||
v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE, 0, 0, 0, 0);
|
v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE, 0, 0, 0, 0);
|
||||||
|
|
||||||
/* flash strobe stop */
|
/* flash strobe stop */
|
||||||
v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE_STOP, 0, 0, 0, 0);
|
v4l2_ctrl_new_std(hdl, ops, V4L2_CID_FLASH_STROBE_STOP, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
@ -389,7 +392,7 @@ static int lm3560_init_device(struct lm3560_flash *flash)
|
||||||
rval = lm3560_mode_ctrl(flash);
|
rval = lm3560_mode_ctrl(flash);
|
||||||
if (rval < 0)
|
if (rval < 0)
|
||||||
return rval;
|
return rval;
|
||||||
/* Reset faults */
|
/* reset faults */
|
||||||
rval = regmap_read(flash->regmap, REG_FLAG, ®_val);
|
rval = regmap_read(flash->regmap, REG_FLAG, ®_val);
|
||||||
return rval;
|
return rval;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue