diff options
author | Jacopo Mondi <jacopo.mondi@linaro.org> | 2016-02-23 11:22:49 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-02-23 22:39:20 -0800 |
commit | 27e18d8c6967f554b374a713c6bd21bcc985389b (patch) | |
tree | 792dcb9dfac32db269529f99928490b3ec963e89 | |
parent | 446091c999388f9365e8d206f70b0c1a860212a0 (diff) |
greybus: camera: Rename clock_mode to flags
Rename the 'clock_mode' parameter to a more generic 'flags' in the csi
bus configuration structure.
Define flags value for continuous clock mode.
Signed-off-by: Jacopo Mondi <jacopo.mondi@linaro.org>
Acked-by: Laurent Pinchart <laurent.pinchart@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
-rw-r--r-- | drivers/staging/greybus/camera.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c index 3f205cbcb21b..444e218e15ab 100644 --- a/drivers/staging/greybus/camera.c +++ b/drivers/staging/greybus/camera.c @@ -158,7 +158,8 @@ static int gb_camera_set_power_mode(struct gb_camera *gcam, bool hs) struct ap_csi_config_request { __u8 csi_id; - __u8 clock_mode; + __u8 flags; +#define GB_CAMERA_CSI_FLAG_CLOCK_CONTINUOUS 0x01 __u8 num_lanes; __u8 padding; __le32 bus_freq; @@ -267,7 +268,7 @@ static int gb_camera_configure_streams(struct gb_camera *gcam, if (nstreams) { csi_cfg.csi_id = 1; - csi_cfg.clock_mode = 0; + csi_cfg.flags = 0; csi_cfg.num_lanes = 4; csi_cfg.bus_freq = cpu_to_le32(960000000); csi_cfg.lines_per_second = resp->lines_per_second; |