]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita5ecfaf033183352422b40565840038366059545
treec1faf2f450332927360ddd1b77b7ebb5768d9f70
parentc67fbe5d22306ccb5c04af31ac79988a3136c8f2
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