Re: [PATCH 01/12] backlight: gpio: allow to probe non-pdata devices from board files

From
Bartlomiej Zolnierkiewicz <hidden>
Date
2019-06-28 12:58:41
Also in
dri-devel, linux-arm-kernel, lkml
Reply to
Bartosz Golaszewski, 2019-06-25
On 6/25/19 6:34 PM, Bartosz Golaszewski wrote:
From: Bartosz Golaszewski <redacted>

Currently we can only probe devices that either use device tree or pass
platform data to probe(). Rename gpio_backlight_probe_dt() to
gpio_backlight_probe_prop() and use generic device properties instead
of OF specific helpers. Reverse the logic checking the presence of
platform data in probe(). This way we can probe devices() registered
from machine code that neither have a DT node nor use platform data.

Signed-off-by: Bartosz Golaszewski <redacted>
Reviewed-by: Bartlomiej Zolnierkiewicz <redacted>

Best regards,
--
Bartlomiej Zolnierkiewicz
Samsung R&D Institute Poland
Samsung Electronics
Thread (28 messages) 28 messages, 6 authors, last reply 2019-07-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help