Re: [PATCH 10/10] drm/panel: simple: Use dev_err_probe() to simplify code

2022-09-28 Thread Yuan Can
在 2022/9/29 7:03, Doug Anderson 写道: Hi, On Fri, Sep 23, 2022 at 6:59 PM Yuan Can wrote: In the probe path, dev_err() can be replaced with dev_err_probe() which will check if error code is -EPROBE_DEFER and prints the error name. It also sets the defer probe reason which can be checked later

Re: [PATCH 10/10] drm/panel: simple: Use dev_err_probe() to simplify code

2022-09-28 Thread Doug Anderson
Hi, On Fri, Sep 23, 2022 at 6:59 PM Yuan Can wrote: > > In the probe path, dev_err() can be replaced with dev_err_probe() > which will check if error code is -EPROBE_DEFER and prints the > error name. It also sets the defer probe reason which can be > checked later through debugfs. > > Signed-off

[PATCH 10/10] drm/panel: simple: Use dev_err_probe() to simplify code

2022-09-23 Thread Yuan Can
In the probe path, dev_err() can be replaced with dev_err_probe() which will check if error code is -EPROBE_DEFER and prints the error name. It also sets the defer probe reason which can be checked later through debugfs. Signed-off-by: Yuan Can --- drivers/gpu/drm/panel/panel-simple.c | 9 +++---