Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

soc: qcom: apr: Use typedef for GPR callback member

There is already a typedef for GPR callback used in 'struct
pkt_router_svc', so use it also in 'struct apr_driver', because it is
the same type - one is assigned to another in apr_device_probe().

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Acked-by: Bjorn Andersson <andersson@kernel.org>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20251130-asoc-apr-const-v1-2-d0833f3ed423@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
c66cea19 86af3c22

+1 -1
+1 -1
include/linux/soc/qcom/apr.h
··· 156 156 void (*remove)(struct apr_device *sl); 157 157 int (*callback)(struct apr_device *a, 158 158 const struct apr_resp_pkt *d); 159 - int (*gpr_callback)(struct gpr_resp_pkt *d, void *data, int op); 159 + gpr_port_cb gpr_callback; 160 160 struct device_driver driver; 161 161 const struct apr_device_id *id_table; 162 162 };