[PATCH 0/2] drivers: use of_match_ptr to avoid references when OF_PLATDATA is used

Walter Lozano walter.lozano at collabora.com
Wed Jul 29 18:17:30 CEST 2020


In order to save extra bytes when OF_PLATDATA is enabled avoid
referencing compatible strings and additional functions by extending
the use of of_match_ptr taking into account this configuration.


Walter Lozano (2):
  core: improve of_match_ptr with OF_PLATDATA
  drivers: use of_match_ptr to avoid references when OF_PLATDATA is used

 drivers/clk/clk_fixed_factor.c            | 2 +-
 drivers/clk/clk_fixed_rate.c              | 2 +-
 drivers/clk/rockchip/clk_px30.c           | 4 ++--
 drivers/clk/rockchip/clk_rk3188.c         | 2 +-
 drivers/clk/rockchip/clk_rk3288.c         | 2 +-
 drivers/clk/rockchip/clk_rk3308.c         | 2 +-
 drivers/clk/rockchip/clk_rk3368.c         | 2 +-
 drivers/clk/rockchip/clk_rk3399.c         | 4 ++--
 drivers/core/simple-bus.c                 | 2 +-
 drivers/core/syscon-uclass.c              | 2 +-
 drivers/gpio/mxs_gpio.c                   | 6 ++----
 drivers/mmc/ftsdc010_mci.c                | 2 +-
 drivers/mmc/mxsmmc.c                      | 6 ++----
 drivers/mmc/rockchip_dw_mmc.c             | 4 ++--
 drivers/mmc/rockchip_sdhci.c              | 2 +-
 drivers/pinctrl/intel/pinctrl_apl.c       | 2 +-
 drivers/pinctrl/rockchip/pinctrl-px30.c   | 2 +-
 drivers/pinctrl/rockchip/pinctrl-rk3328.c | 2 +-
 drivers/pinctrl/rockchip/pinctrl-rk3399.c | 2 +-
 drivers/ram/rockchip/dmc-rk3368.c         | 2 +-
 drivers/ram/rockchip/sdram_rk3188.c       | 2 +-
 drivers/ram/rockchip/sdram_rk322x.c       | 2 +-
 drivers/ram/rockchip/sdram_rk3288.c       | 2 +-
 drivers/ram/rockchip/sdram_rk3328.c       | 2 +-
 drivers/ram/rockchip/sdram_rk3399.c       | 2 +-
 drivers/spi/ich.c                         | 2 +-
 drivers/spi/mxs_spi.c                     | 6 ++----
 drivers/spi/rk_spi.c                      | 2 +-
 drivers/timer/rockchip_timer.c            | 2 +-
 include/dm/device.h                       | 2 +-
 30 files changed, 36 insertions(+), 42 deletions(-)

-- 
2.20.1



More information about the U-Boot mailing list