diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-04 02:55:20 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-14 02:51:09 +0300 |
commit | c69cda25c9b59e53a6bc8969ada58942549f5b5d (patch) | |
tree | 8c84d1773465eb8e06cbbaeb710daa6217f5618d /include | |
parent | 4f50086ad6d69c355a07389fb436c64c92ec614a (diff) | |
download | u-boot-c69cda25c9b59e53a6bc8969ada58942549f5b5d.tar.xz |
dm: treewide: Rename dev_get_platdata() to dev_get_plat()
Rename this to be consistent with the change from 'platdata'.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/dm/device.h | 4 | ||||
-rw-r--r-- | include/dwmmc.h | 2 | ||||
-rw-r--r-- | include/linux/clk-provider.h | 2 | ||||
-rw-r--r-- | include/sdhci.h | 2 | ||||
-rw-r--r-- | include/usb.h | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/include/dm/device.h b/include/dm/device.h index 5d31a2c715..491542c580 100644 --- a/include/dm/device.h +++ b/include/dm/device.h @@ -285,14 +285,14 @@ struct driver { #define U_BOOT_DRIVER_ALIAS(__name, __alias) /** - * dev_get_platdata() - Get the platform data for a device + * dev_get_plat() - Get the platform data for a device * * This checks that dev is not NULL, but no other checks for now * * @dev Device to check * @return platform data, or NULL if none */ -void *dev_get_platdata(const struct udevice *dev); +void *dev_get_plat(const struct udevice *dev); /** * dev_get_parent_plat() - Get the parent platform data for a device diff --git a/include/dwmmc.h b/include/dwmmc.h index 4515a44dc2..51ab74ead3 100644 --- a/include/dwmmc.h +++ b/include/dwmmc.h @@ -259,7 +259,7 @@ static inline u8 dwmci_readb(struct dwmci_host *host, int reg) * .plat_auto = sizeof(struct rockchip_mmc_plat), * * To access platform data: - * struct rockchip_mmc_plat *plat = dev_get_platdata(dev); + * struct rockchip_mmc_plat *plat = dev_get_plat(dev); * * See rockchip_dw_mmc.c for an example. * diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 79dce8f0ad..75b16353da 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -144,7 +144,7 @@ struct clk_fixed_rate { unsigned long fixed_rate; }; -#define to_clk_fixed_rate(dev) ((struct clk_fixed_rate *)dev_get_platdata(dev)) +#define to_clk_fixed_rate(dev) ((struct clk_fixed_rate *)dev_get_plat(dev)) struct clk_composite { struct clk clk; diff --git a/include/sdhci.h b/include/sdhci.h index 69c2087c10..3e5a649818 100644 --- a/include/sdhci.h +++ b/include/sdhci.h @@ -443,7 +443,7 @@ static inline u8 sdhci_readb(struct sdhci_host *host, int reg) * .plat_auto = sizeof(struct msm_sdhc_plat), * * To access platform data: - * struct msm_sdhc_plat *plat = dev_get_platdata(dev); + * struct msm_sdhc_plat *plat = dev_get_plat(dev); * * See msm_sdhci.c for an example. * diff --git a/include/usb.h b/include/usb.h index a3323f5801..9e1ec534ec 100644 --- a/include/usb.h +++ b/include/usb.h @@ -599,7 +599,7 @@ struct usb_hub_device { /** * struct usb_platdata - Platform data about a USB controller * - * Given a USB controller (UCLASS_USB) dev this is dev_get_platdata(dev) + * Given a USB controller (UCLASS_USB) dev this is dev_get_plat(dev) */ struct usb_platdata { enum usb_init_type init_type; |