ata: palmld: Introduce state container
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 5 Dec 2018 08:49:11 +0000 (09:49 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 5 Dec 2018 13:01:14 +0000 (06:01 -0700)
commit614c61a6514e05a4bb0cd8989159f986da132215
treec1faf2f450332927360ddd1b77b7ebb5768d9f70
parentf43e4b007a943b00a7562025ed036a9c1ee2950f
ata: palmld: Introduce state container

This creates a state container struct for the Palm LifeDrive
ATA controller, and puts the ATA host and the two GPIO
descriptors into this container.

This avoids using a singleton so potentially multiple
PATA interfaces can be instantiated.

Suggested-by: Marek Vasut <marek.vasut@gmail.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/ata/pata_palmld.c