msm: camera: common: Make msg_cb for cam_subdev generic

The current implementation allows to pass uint_32 as
argument in the message callback. Changing it to (void *)
type so that any type of data can be passed in the future
implementations.

CRs-Fixed: 2847155
Change-Id: Ic52a5ccfe13efdba37bbcfdb7154ed789b1943fd
Signed-off-by: Shardul Bankar <sharbank@codeaurora.org>
This commit is contained in:
Shardul Bankar
2021-08-28 12:43:31 +05:30
parent 13d3e00200
commit dc53926c40
6 changed files with 23 additions and 14 deletions

View File

@@ -65,7 +65,7 @@ struct cam_subdev {
void (*msg_cb)(
struct v4l2_subdev *sd,
enum cam_subdev_message_type_t msg_type,
uint32_t data);
void *data);
struct list_head list;
enum cam_subdev_close_seq_priority close_seq_prior;
};
@@ -82,7 +82,7 @@ struct cam_subdev {
*/
void cam_subdev_notify_message(u32 subdev_type,
enum cam_subdev_message_type_t message_type,
uint32_t data);
void *data);
/**
* cam_subdev_probe()