summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/camera.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@google.com>2015-12-31 11:14:33 -0800
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-12 11:12:25 -0800
commite5273381041fc75215fb50661db39d2f8ed5544e (patch)
treeba6d3bd32f8880aa6787b5891753b0e7e991c7f9 /drivers/staging/greybus/camera.c
parented4596e9b19104ccc1e87bde8fcadee3a473c101 (diff)
greybus: APBridge: move APBridge request protocol to a common .h file
This moves all of the APBridge request protocol commands that are currently used to a common .h file for everyone to be able to use them in the future, where needed. Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Tested-by: Mark Greer <mgreer@animalcreek.com> Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Diffstat (limited to 'drivers/staging/greybus/camera.c')
-rw-r--r--drivers/staging/greybus/camera.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/drivers/staging/greybus/camera.c b/drivers/staging/greybus/camera.c
index ac9ade367e0a..783a435bbae6 100644
--- a/drivers/staging/greybus/camera.c
+++ b/drivers/staging/greybus/camera.c
@@ -73,9 +73,6 @@ struct gb_camera_stream_config {
* Camera Protocol Operations
*/
-/* vendor request to control the CSI transmitter */
-#define REQUEST_CSI_TX_CONTROL 0x08
-
struct ap_csi_config_request {
__u8 csi_id;
__u8 clock_mode;
@@ -169,13 +166,13 @@ static int gb_camera_configure_streams(struct gb_camera *gcam,
csi_cfg.num_lanes = 4;
csi_cfg.bus_freq = cpu_to_le32(960000000);
ret = gb_hd_output(gcam->connection->hd, &csi_cfg,
- sizeof(csi_cfg), REQUEST_CSI_TX_CONTROL,
- false);
+ sizeof(csi_cfg),
+ GB_APB_REQUEST_CSI_TX_CONTROL, false);
} else if (nstreams == 0) {
csi_cfg.csi_id = 1;
ret = gb_hd_output(gcam->connection->hd, &csi_cfg,
- sizeof(csi_cfg), REQUEST_CSI_TX_CONTROL,
- false);
+ sizeof(csi_cfg),
+ GB_APB_REQUEST_CSI_TX_CONTROL, false);
}
if (ret < 0)