]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: core: Rename dev_has_of_node() to dev_has_ofnode()
authorSimon Glass <sjg@chromium.org>
Sat, 19 Dec 2020 17:40:12 +0000 (10:40 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:41 +0000 (12:24 -0700)
We use 'ofnode' rather than 'of_node' in U-Boot. Rename this function to
fit.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
drivers/mmc/octeontx_hsmmc.c
drivers/pinctrl/pinctrl-uclass.c
drivers/usb/host/usb-uclass.c
include/dm/device.h

index ba50d46effeb9b23903a97318012df80b6e4c210..8c7ce220f84dfd76623d394ab3eee85430e4a137 100644 (file)
@@ -406,7 +406,7 @@ int device_of_to_plat(struct udevice *dev)
        assert(drv);
 
        if (drv->of_to_plat &&
-           (CONFIG_IS_ENABLED(OF_PLATDATA) || dev_has_of_node(dev))) {
+           (CONFIG_IS_ENABLED(OF_PLATDATA) || dev_has_ofnode(dev))) {
                ret = drv->of_to_plat(dev);
                if (ret)
                        goto fail;
index 57d107aac32b71cad1832e9a85191b6b5c09c104..f3da6af9090be8d8aa4e5d8c4400e42e170d94c2 100644 (file)
@@ -3752,7 +3752,7 @@ static int octeontx_mmc_host_probe(struct udevice *dev)
        host->dev = dev;
        debug("%s(%s): Base address: %p\n", __func__, dev->name,
              host->base_addr);
-       if (!dev_has_of_node(dev)) {
+       if (!dev_has_ofnode(dev)) {
                pr_err("%s: No device tree information found\n", __func__);
                return -1;
        }
index 4e474cbff735270965f18d840e7592f729a8b4cd..4653e86ba46accb908a5d00eebdc949d8ecd803f 100644 (file)
@@ -305,7 +305,7 @@ int pinctrl_select_state(struct udevice *dev, const char *statename)
         * Some device which is logical like mmc.blk, do not have
         * a valid ofnode.
         */
-       if (!dev_has_of_node(dev))
+       if (!dev_has_ofnode(dev))
                return 0;
        /*
         * Try full-implemented pinctrl first.
index 17db5eb0609571c2d38c4a7781a5c6f6377013b4..ae6b1450d3a67010fe0024977b83d73c18f9ea61 100644 (file)
@@ -517,7 +517,7 @@ static ofnode usb_get_ofnode(struct udevice *hub, int port)
        ofnode node;
        u32 reg;
 
-       if (!dev_has_of_node(hub))
+       if (!dev_has_ofnode(hub))
                return ofnode_null();
 
        /*
index a0c1752cddc2c2f29d0e66e91f813377fb5e460b..b15a14ec33070bb6ce35013fd17b6254471e0de9 100644 (file)
@@ -200,7 +200,7 @@ static inline int dev_of_offset(const struct udevice *dev)
        return ofnode_to_offset(dev->node);
 }
 
-static inline bool dev_has_of_node(struct udevice *dev)
+static inline bool dev_has_ofnode(struct udevice *dev)
 {
        return ofnode_valid(dev->node);
 }