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

Commit 8ccb3a45 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Remove versioning from the KGSL device



We have had a static "version" forever and carried it around in the
device struct for some odd reason.

Change-Id: Ic0dedbad4131e0be65a3bf164fcbe1c8ae9a29db
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 2c9c2743
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -38,9 +38,6 @@
#include "adreno-gpulist.h"
#include "adreno_dispatch.h"

#define DRIVER_VERSION_MAJOR   3
#define DRIVER_VERSION_MINOR   1

static void adreno_input_work(struct work_struct *work);
static unsigned int counter_delta(struct kgsl_device *device,
	unsigned int reg, unsigned int *counter);
+3 −2
Original line number Diff line number Diff line
@@ -1428,8 +1428,9 @@ long kgsl_ioctl_device_getproperty(struct kgsl_device_private *dev_priv,

		version.drv_major = KGSL_VERSION_MAJOR;
		version.drv_minor = KGSL_VERSION_MINOR;
		version.dev_major = dev_priv->device->ver_major;
		version.dev_minor = dev_priv->device->ver_minor;

		version.dev_major = 3;
		version.dev_minor = 1;

		if (copy_to_user(param->value, &version, sizeof(version)))
			result = -EFAULT;
+1 −5
Original line number Diff line number Diff line
@@ -232,8 +232,6 @@ struct kgsl_sparseobj_node {
struct kgsl_device {
	struct device *dev;
	const char *name;
	unsigned int ver_major;
	unsigned int ver_minor;
	uint32_t flags;
	u32 id;

@@ -336,9 +334,7 @@ struct kgsl_device {
	.wait_queue = __WAIT_QUEUE_HEAD_INITIALIZER((_dev).wait_queue),\
	.active_cnt_wq = __WAIT_QUEUE_HEAD_INITIALIZER((_dev).active_cnt_wq),\
	.mutex = __MUTEX_INITIALIZER((_dev).mutex),\
	.state = KGSL_STATE_NONE,\
	.ver_major = DRIVER_VERSION_MAJOR,\
	.ver_minor = DRIVER_VERSION_MINOR
	.state = KGSL_STATE_NONE


/**