diff options
author | Pavel Machek | 2015-04-09 04:42:38 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab | 2015-04-27 16:19:23 -0300 |
commit | 074c57a25fa2c83a264f3fdbb99a9fef0229884d (patch) | |
tree | 74cd462c69e4ea4672e5b619d19470b0de9f74b6 /include/media | |
parent | b2dbde542da291adc4ae3bd86686229a23a0b118 (diff) |
[media] media: i2c/adp1653: Devicetree support for adp1653
Add device tree support for adp1653 flash LED driver.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/adp1653.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/media/adp1653.h b/include/media/adp1653.h index 1d9b48a3bd80..9779c8549eb4 100644 --- a/include/media/adp1653.h +++ b/include/media/adp1653.h @@ -100,9 +100,11 @@ struct adp1653_platform_data { int (*power)(struct v4l2_subdev *sd, int on); u32 max_flash_timeout; /* flash light timeout in us */ - u32 max_flash_intensity; /* led intensity, flash mode */ - u32 max_torch_intensity; /* led intensity, torch mode */ - u32 max_indicator_intensity; /* indicator led intensity */ + u32 max_flash_intensity; /* led intensity, flash mode, mA */ + u32 max_torch_intensity; /* led intensity, torch mode, mA */ + u32 max_indicator_intensity; /* indicator led intensity, uA */ + + struct gpio_desc *enable_gpio; /* for device-tree based boot */ }; #define to_adp1653_flash(sd) container_of(sd, struct adp1653_flash, subdev) |