staging: mmal-vchiq: Fix client_component for 64 bit kernel
authorDave Stevenson <dave.stevenson@raspberrypi.org>
Tue, 22 Jan 2019 12:04:09 +0000 (12:04 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:32:51 +0000 (11:32 +0000)
commitb591e0dbb584214e533f0a3eea9be6b3b66b550f
tree1954cb3a74f0b8375b06e4ccee5d2eeedbb204cc
parent9f76823e21d6982ea97f2c1cbc8718c31be4f8d4
staging: mmal-vchiq: Fix client_component for 64 bit kernel

The MMAL client_component field is used with the event
mechanism to allow the client to identify the component for
which the event is generated.
The field is only 32bits in size, therefore we can't use a
pointer to the component in a 64 bit kernel.

Component handles are already held in an array per VCHI
instance, so use the array index as the client_component handle
to avoid having to create a new IDR for this purpose.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
drivers/staging/vc04_services/vchiq-mmal/mmal-vchiq.c