mailbox: bcm-flexrm-mailbox: using dev_get_drvdata directly
authorFuqian Huang <huangfq.daxian@gmail.com>
Thu, 4 Jul 2019 02:36:27 +0000 (10:36 +0800)
committerJassi Brar <jaswinder.singh@linaro.org>
Thu, 11 Jul 2019 04:08:44 +0000 (23:08 -0500)
commit7836922d87175dbc9bc972a1aca08d2c8b6f5045
treebd37d040640f17494c498e5607cf667ca4f879da
parent11108f4671bda6bf93bea5455210346a0ccbaa10
mailbox: bcm-flexrm-mailbox: using dev_get_drvdata directly

Several drivers cast a struct device pointer to a struct
platform_device pointer only to then call platform_get_drvdata().
To improve readability, these constructs can be simplified
by using dev_get_drvdata() directly.

Signed-off-by: Fuqian Huang <huangfq.daxian@gmail.com>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/bcm-flexrm-mailbox.c