dm: gpio: uclass: Add flag to control sequence numbering
authorBhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Thu, 9 Apr 2015 14:17:20 +0000 (19:47 +0530)
committerStefan Agner <stefan.agner@toradex.com>
Wed, 22 Apr 2015 16:08:43 +0000 (18:08 +0200)
commit1bf7775ae6c112e70e027daa8f19bc14fb43ea53
treeb8c1c72d1a1d2d1c38322ae0f0fc9fa7d74ff81d
parent6a8aa6d07c3e2e7aefa588bb85583194d73db45e
dm: gpio: uclass: Add flag to control sequence numbering

Like SPI and I2C few GPIO controllers also have multiple chip instances.
This patch adds the flag 'DM_UC_FLAG_SEQ_ALIAS' in gpio_uclass driver
to control device sequence numbering. By defalut the dev->r_seq for gpio_uclass
will alwalys returns -1, which leads the gpio driver probe failure.

Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
drivers/gpio/gpio-uclass.c