Re: [PATCH v4 05/10] hw/sd/pl181: Use named GPIOs

2020-07-06 Thread Alistair Francis
On Sun, Jul 5, 2020 at 1:50 PM Philippe Mathieu-Daudé wrote: > > To make the code easier to manage/review/use, rename the > cardstatus[0] variable as 'card_readonly' and name the GPIO > "card-read-only". > Similarly with cardstatus[1], renamed as 'card_inserted' and > name its GPIO "card-inserted"

[PATCH v4 05/10] hw/sd/pl181: Use named GPIOs

2020-07-05 Thread Philippe Mathieu-Daudé
To make the code easier to manage/review/use, rename the cardstatus[0] variable as 'card_readonly' and name the GPIO "card-read-only". Similarly with cardstatus[1], renamed as 'card_inserted' and name its GPIO "card-inserted". Adapt the users accordingly by using the qdev_init_gpio_out_named() fun