]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
firmware: xilinx: Move EXPORT_SYMBOL_GPL next to zynqmp_pm_feature definition
authorRajan Vaja <rajan.vaja@xilinx.com>
Thu, 26 Oct 2023 19:23:58 +0000 (00:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Oct 2023 11:16:31 +0000 (13:16 +0200)
As mentioned in Documentation/process/coding-style.rst:
In source files, separate functions with one blank line. If the function
is exported, the **EXPORT** macro for it should follow immediately after
the closing function brace line.

So inline with guideline move zynqmp_pm_feature export symbol after its
definition.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Link: https://lore.kernel.org/r/1698348238-2320426-1-git-send-email-radhey.shyam.pandey@amd.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/firmware/xilinx/zynqmp.c

index 4cc1ac7f76ed904180e28f47a39cded6cdbcc637..b0d22d4455d9500828920b7223168ec31cf099ac 100644 (file)
@@ -226,7 +226,6 @@ static int do_feature_check_call(const u32 api_id)
 
        return ret;
 }
-EXPORT_SYMBOL_GPL(zynqmp_pm_feature);
 
 /**
  * zynqmp_pm_feature() - Check whether given feature is supported or not and
@@ -246,6 +245,7 @@ int zynqmp_pm_feature(const u32 api_id)
 
        return ret;
 }
+EXPORT_SYMBOL_GPL(zynqmp_pm_feature);
 
 /**
  * zynqmp_pm_is_function_supported() - Check whether given IOCTL/QUERY function