summaryrefslogtreecommitdiffstats
path: root/drivers/rpmsg/qcom_smd.c
diff options
context:
space:
mode:
authorBjorn Andersson <bjorn.andersson@linaro.org>2018-03-27 23:06:41 +0200
committerBjorn Andersson <bjorn.andersson@linaro.org>2018-03-28 06:54:35 +0200
commit6ddf12d397aee75dbd24dd02be07c1372e3008f6 (patch)
tree2cc682574aebc6e90af6fa621db6cc1f830bfa14 /drivers/rpmsg/qcom_smd.c
parentRevert "rpmsg: smd: Create device for all channels" (diff)
downloadlinux-6ddf12d397aee75dbd24dd02be07c1372e3008f6.tar.xz
linux-6ddf12d397aee75dbd24dd02be07c1372e3008f6.zip
rpmsg: smd: Fix container_of macros
The container_of macros should not use the same name for the parameter as the member to use for lookup, as this will result in a compilation error unless the passed parameter has the same name as the member. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'drivers/rpmsg/qcom_smd.c')
-rw-r--r--drivers/rpmsg/qcom_smd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rpmsg/qcom_smd.c b/drivers/rpmsg/qcom_smd.c
index b062e9d6e25f..35089039a335 100644
--- a/drivers/rpmsg/qcom_smd.c
+++ b/drivers/rpmsg/qcom_smd.c
@@ -167,9 +167,9 @@ struct qcom_smd_endpoint {
struct qcom_smd_channel *qsch;
};
-#define to_smd_device(_rpdev) container_of(_rpdev, struct qcom_smd_device, rpdev)
+#define to_smd_device(r) container_of(r, struct qcom_smd_device, rpdev)
#define to_smd_edge(d) container_of(d, struct qcom_smd_edge, dev)
-#define to_smd_endpoint(ept) container_of(ept, struct qcom_smd_endpoint, ept)
+#define to_smd_endpoint(e) container_of(e, struct qcom_smd_endpoint, ept)
/**
* struct qcom_smd_channel - smd channel struct