]> git.dujemihanovic.xyz Git - u-boot.git/commit
serial: s5p: Use livetree API to get "id" property
authorSam Protsenko <semen.protsenko@linaro.org>
Tue, 7 Nov 2023 19:05:59 +0000 (13:05 -0600)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 23 Nov 2023 06:24:18 +0000 (15:24 +0900)
commit5ad21de6bae0a6d51d4b0ff8eedfb795ed2d4581
treec06ca770af156bab70a2fcf5558c482c320ec28e
parenta0615ffc99a5c5e23b9fe5a8116fc265483be2bd
serial: s5p: Use livetree API to get "id" property

Use dev_read_u8_default() instead of fdtdec_get_int() to read the "id"
property from device tree, as suggested in [1]. dev_* API is already
used in this driver, so there is no reason to stick to fdtdec_* API.
This also fixes checkpatch warning:

    WARNING: Use the livetree API (dev_read_...)

[1] doc/develop/driver-model/livetree.rst

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
drivers/serial/serial_s5p.c