• Alan Tull's avatar
    fpga: bridge: support getting bridge from device · 9c1c4b27
    Alan Tull authored
    Add two functions for getting the FPGA bridge from the device
    rather than device tree node.  This is to enable writing code
    that will support using FPGA bridges without device tree.
    Rename one old function to make it clear that it is device
    tree-ish.  This leaves us with 3 functions for getting a bridge:
    
    * fpga_bridge_get
      Get the bridge given the device.
    
    * fpga_bridges_get_to_list
      Given the device, get the bridge and add it to a list.
    
    * of_fpga_bridges_get_to_list
      Renamed from priviously existing fpga_bridges_get_to_list.
      Given the device node, get the bridge and add it to a list.
    Signed-off-by: default avatarAlan Tull <atull@kernel.org>
    Acked-by: default avatarMoritz Fischer <mdf@kernel.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    9c1c4b27
fpga-bridge.c 10.8 KB