aboutsummaryrefslogtreecommitdiff
path: root/platform/generic/platform.c
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2024-09-03 19:09:38 -0700
committerAnup Patel <anup@brainfault.org>2024-11-05 17:54:39 +0530
commitd71150ee7047c4d7ad67525731cc6271939d782c (patch)
tree4f339d945d8122deb8dace659cff1ee6c6bf577d /platform/generic/platform.c
parent598cf961d82a12afa3ccbed9645edae2275b76f3 (diff)
downloadopensbi-d71150ee7047c4d7ad67525731cc6271939d782c.zip
opensbi-d71150ee7047c4d7ad67525731cc6271939d782c.tar.gz
opensbi-d71150ee7047c4d7ad67525731cc6271939d782c.tar.bz2
lib: utils/gpio: Use FDT node offset as GPIO chip ID
Since the FDT is not modified during driver initialization, node offsets are just as suitable as phandles for use as identifiers: they are stable and unique. With this change, it is no longer necessary to pass the phandle to the driver init functions, so these init functions now use the same prototype as other kinds of drivers. This matches what is already done for I2C adapters. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform/generic/platform.c')
0 files changed, 0 insertions, 0 deletions