Re: [PATCH 06/10] mtd: rawnand: fsl_upm: Use gpio descriptors

From
Miquel Raynal <miquel.raynal@bootlin.com>
Date
2020-06-03 15:02:33
Reply to
Boris Brezillon, 2020-06-03
Boris Brezillon [off-list ref] wrote on Wed,  3 Jun
2020 15:49:18 +0200:
The integer-based GPIO ids are now deprecated in favor of the GPIO desc
API. The PPC platforms have already been converted to GPIOLIB, so let's
use gpio descs in the NAND driver too.

While at it, we use devm_gpiod_get_index_optional() so we can get rid
of the manual gpio desc release done in the init error path and in the
remove function.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
---
 drivers/mtd/nand/raw/fsl_upm.c | 44 ++++++++--------------------------
 1 file changed, 10 insertions(+), 34 deletions(-)

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Thread (32 messages) 32 messages, 2 authors, last reply 2020-07-07
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help