]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
raspberrypi-firmware: Export the general transaction function.
authorEric Anholt <eric@anholt.net>
Wed, 14 Sep 2016 08:16:19 +0000 (09:16 +0100)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 19 Sep 2017 10:07:48 +0000 (12:07 +0200)
The vc4-firmware-kms module is going to be doing the MBOX FB call.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/firmware/raspberrypi.c
include/soc/bcm2835/raspberrypi-firmware.h

index 3f070bd38a91511c986e3fb114b15bd4ac32634c..f261b64d1657c02290904d841e1f087c34e27ded 100644 (file)
@@ -42,7 +42,7 @@ static void response_callback(struct mbox_client *cl, void *msg)
  * Sends a request to the firmware through the BCM2835 mailbox driver,
  * and synchronously waits for the reply.
  */
-static int
+int
 rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data)
 {
        u32 message = MBOX_MSG(chan, data);
@@ -63,6 +63,7 @@ rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data)
 
        return ret;
 }
+EXPORT_SYMBOL_GPL(rpi_firmware_transaction);
 
 /**
  * rpi_firmware_property_list - Submit firmware property list
index 7f0da0727422c690947e46e891a754de13dc1fea..280791fb9656901392ce67e44cb742c96f090ed4 100644 (file)
@@ -152,5 +152,6 @@ static inline struct rpi_firmware *rpi_firmware_get(struct device_node *firmware
        return NULL;
 }
 #endif
+int rpi_firmware_transaction(struct rpi_firmware *fw, u32 chan, u32 data);
 
 #endif /* __SOC_RASPBERRY_FIRMWARE_H__ */