diff options
| author | Marek Vasut <[email protected]> | 2022-09-22 17:53:26 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-01-12 14:06:16 -0500 |
| commit | 48b3ecbedf8208845ac5956a3fb8817269fafedd (patch) | |
| tree | 9a2a90d475abd35c8945bb3af7aa0c14bfc149f7 /doc | |
| parent | 942918f2acd3634dee7813f7b9f801ffd54d9f2e (diff) | |
gpio: Get rid of gpio_hog_probe_all()
The gpio_hog_probe_all() functionality can be perfectly well replaced by
DM_FLAG_PROBE_AFTER_BIND DM flag, which would trigger .probe() callback
of each GPIO hog driver instance after .bind() and thus configure the
hogged GPIO accordingly.
Signed-off-by: Marek Vasut <[email protected]>
Signed-off-by: Quentin Schulz <[email protected]>
Reviewed-by: Patrick Delaunay <[email protected]>
Reviewed-by: Samuel Holland <[email protected]>
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/README.gpio | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/doc/README.gpio b/doc/README.gpio index 548ff37b8cc..d253f654fad 100644 --- a/doc/README.gpio +++ b/doc/README.gpio @@ -2,10 +2,8 @@ GPIO hog (CONFIG_GPIO_HOG) -------- -All the GPIO hog are initialized in gpio_hog_probe_all() function called in -board_r.c just before board_late_init() but you can also acces directly to -the gpio with gpio_hog_lookup_name(). - +All the GPIO hog are initialized using DM_FLAG_PROBE_AFTER_BIND DM flag +after bind(). Example, for the device tree: |
