Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6824d0c authored by Prakash Kamliya's avatar Prakash Kamliya Committed by Gerrit - the friendly Code Review server
Browse files

msm: kgsl: Make GMU local functions to static



Few functions are local to the source and
do not need to be in the global space, so
make them static.

Change-Id: I4dd2ee39e6960c77bf1a70002fc8919591034b1a
Signed-off-by: default avatarPrakash Kamliya <pkamliya@codeaurora.org>
parent 65ca63e7
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -309,7 +309,7 @@ static struct {
 * @gmu: Pointer to GMU device
 * @node: Pointer to GMU device node
 */
int gmu_iommu_init(struct gmu_device *gmu, struct device_node *node)
static int gmu_iommu_init(struct gmu_device *gmu, struct device_node *node)
{
	struct device_node *child;
	struct gmu_iommu_context *ctx = NULL;
@@ -346,7 +346,7 @@ int gmu_iommu_init(struct gmu_device *gmu, struct device_node *node)
 * from IOMMU context banks.
 * @gmu: Pointer to GMU device
 */
void gmu_kmem_close(struct gmu_device *gmu)
static void gmu_kmem_close(struct gmu_device *gmu)
{
	int i;
	struct gmu_memdesc *md = &gmu->fw_image;
@@ -386,7 +386,7 @@ void gmu_kmem_close(struct gmu_device *gmu)
	iommu_domain_free(ctx->domain);
}

void gmu_memory_close(struct gmu_device *gmu)
static void gmu_memory_close(struct gmu_device *gmu)
{
	gmu_kmem_close(gmu);
	/* Free user memory context */
@@ -400,7 +400,7 @@ void gmu_memory_close(struct gmu_device *gmu)
 * @gmu: Pointer to GMU device
 * @node: Pointer to GMU device node
 */
int gmu_memory_probe(struct gmu_device *gmu, struct device_node *node)
static int gmu_memory_probe(struct gmu_device *gmu, struct device_node *node)
{
	int ret;

@@ -753,7 +753,7 @@ static int gmu_bus_vote_init(struct gmu_device *gmu, struct kgsl_pwrctrl *pwr)
	return 0;
}

int gmu_rpmh_init(struct gmu_device *gmu, struct kgsl_pwrctrl *pwr)
static int gmu_rpmh_init(struct gmu_device *gmu, struct kgsl_pwrctrl *pwr)
{
	struct rpmh_arc_vals gfx_arc, cx_arc, mx_arc;
	int ret;
+5 −5
Original line number Diff line number Diff line
/* Copyright (c) 2017, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -259,7 +259,7 @@ static int hfi_send_msg(struct gmu_device *gmu, struct hfi_msg_hdr *msg,
	return rc;
}

int hfi_send_gmu_init(struct gmu_device *gmu, uint32_t boot_state)
static int hfi_send_gmu_init(struct gmu_device *gmu, uint32_t boot_state)
{
	struct hfi_gmu_init_cmd init_msg = {
		.hdr = {
@@ -292,7 +292,7 @@ int hfi_send_gmu_init(struct gmu_device *gmu, uint32_t boot_state)
	return rc;
}

int hfi_get_fw_version(struct gmu_device *gmu,
static int hfi_get_fw_version(struct gmu_device *gmu,
		uint32_t expected_ver, uint32_t *ver)
{
	struct hfi_fw_version_cmd fw_ver = {
@@ -356,7 +356,7 @@ int hfi_send_lmconfig(struct gmu_device *gmu)
	return rc;
}

int hfi_send_perftbl(struct gmu_device *gmu)
static int hfi_send_perftbl(struct gmu_device *gmu)
{
	struct hfi_dcvstable_cmd dcvstbl = {
		.hdr = {
@@ -397,7 +397,7 @@ int hfi_send_perftbl(struct gmu_device *gmu)
	return rc;
}

int hfi_send_bwtbl(struct gmu_device *gmu)
static int hfi_send_bwtbl(struct gmu_device *gmu)
{
	struct hfi_bwtable_cmd bwtbl = {
		.hdr = {