staging: mt7621-gpio: use custom xlate function
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Thu, 5 Jul 2018 06:00:27 +0000 (08:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Jul 2018 15:32:24 +0000 (17:32 +0200)
commitcf229037c57d0e7ff4846ba304ba5a4ae2f7aee4
treee86a909653fe6fd3c87e9ae5623bdea011c167c1
parentde7d179377356b7eb8912e29d72e92df7f919ca5
staging: mt7621-gpio: use custom xlate function

The default gpio.of_xlate function assumes there is one gpio chip
for each devicetree node. Device tree had changed to only use one node,
which corresponds to 3 different gpio chips now. For that approach
to work we need a custom xlate function.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-gpio/gpio-mt7621.c