ste_dma40: Improve a size determination in d40_of_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 17 Sep 2016 06:28:05 +0000 (08:28 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:36:17 +0000 (23:06 +0530)
commit71660223f50036e67a2a66cf55815fa665639d3a
tree52931bf361d7cff20d1ed1d063e46cb396691629
parentabac5bac829cc9d8cf178344b4f34b2264927672
ste_dma40: Improve a size determination in d40_of_probe()

Replace the specification of a data structure by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer according to the Linux coding style convention.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c