Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3d73651 authored by Abhilash Kumar's avatar Abhilash Kumar Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: cpas: Add support to query camera hardware capabilities



Update camera hardware capabilities in cpas query info to get number
of IPE devices.

Change-Id: Id2c2261ba787610fe94588a2772ca10776b79520
Signed-off-by: default avatarAbhilash Kumar <krabhi@codeaurora.org>
parent 57c62991
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -366,7 +366,6 @@ int cam_cpas_subdev_cmd(struct cam_cpas_intf *cpas_intf,
	switch (cmd->op_code) {
	case CAM_QUERY_CAP: {
		struct cam_cpas_query_cap query;
		uint32_t cam_cpas;

		rc = copy_from_user(&query, (void __user *) cmd->handle,
			sizeof(query));
@@ -377,7 +376,8 @@ int cam_cpas_subdev_cmd(struct cam_cpas_intf *cpas_intf,
		}

		rc = cam_cpas_get_hw_info(&query.camera_family,
			&query.camera_version, &query.cpas_version, &cam_cpas);
			&query.camera_version, &query.cpas_version,
			&query.reserved);
		if (rc)
			break;