]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit98dbe3572fc3de3494e75a464a1453ffbb08ea7f
tree170d43175586f07d89d536724e35f176566b8fc0
parent0597c62c696cae8b45b7f6c9940cbcd97b12ee36
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