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

Commit 64d97908 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

msm: kgsl: Make getproperty/setproperty return -ENODEV for invalid types



Instead of returning -EINVAL for unknown property types, return -ENODEV
instead so the user space tests can differentiate between a unsupported
type and some other error.

Change-Id: Ic0dedbad1238261ed1166a7f76b612756983f825
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 8ccb3a45
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2435,7 +2435,7 @@ static int adreno_getproperty(struct kgsl_device *device,
{
	if (type >= ARRAY_SIZE(adreno_property_funcs) ||
		!adreno_property_funcs[type].func)
		return -EINVAL;
		return -ENODEV;

	return adreno_property_funcs[type].func(device, type, value, sizebytes);
}
@@ -2602,6 +2602,7 @@ static int adreno_setproperty(struct kgsl_device_private *dev_priv,
		}
		break;
	default:
		status = -ENODEV;
		break;
	}