parisc/dino: use container_of in DINO_DEV
authorChristoph Hellwig <hch@lst.de>
Tue, 29 Jan 2019 18:13:08 +0000 (19:13 +0100)
committerHelge Deller <deller@gmx.de>
Thu, 21 Feb 2019 19:37:12 +0000 (20:37 +0100)
commite2fcabe0ebe0b343b9de53ed0a7a7f2f86eb9863
tree170d43175586f07d89d536724e35f176566b8fc0
parentcb0f7ab4a41f966ed20810f9578355fe973f262e
parisc/dino: use container_of in DINO_DEV

Use the type safe container_of macros instead of a blind cast in
DINO_DEV, and turn the macro into an inline function.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/dino.c