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

Commit b4ec3780 authored by Nakul Kadannavar's avatar Nakul Kadannavar
Browse files

NFC: Read NFCC is fused or unfused for 64 bit arch



Implement kernel ioctl to read if NFCC is fused or not
for 64 bit architecture.

CRs-Fixed: 719576
Change-Id: I922f5a00821c87e31719856dfe6906fb59cc5b39
Signed-off-by: default avatarNakul Kadannavar <nakulk@codeaurora.org>
parent e9593670
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -917,6 +917,7 @@ static long nfc_compat_ioctl(struct file *pfile, unsigned int cmd,
				unsigned long arg)
{
	long r = 0;
	struct qca199x_dev *qca199x_dev = pfile->private_data;
	arg = (compat_u64)arg;
	switch (cmd) {
	case NFC_SET_PWR:
@@ -935,6 +936,14 @@ static long nfc_compat_ioctl(struct file *pfile, unsigned int cmd,
		break;
	case SET_EMULATOR_TEST_POINT:
		break;
	case NFC_GET_EFUSE:
		r = nfc_ioctl_nfcc_efuse(pfile, cmd, arg);
		if (r < 0) {
			r = 0xFF;
			dev_err(&qca199x_dev->client->dev,
			"nfc_ioctl : FAILED TO READ EFUSE TYPE\n");
		}
		break;
	default:
		r = -ENOTTY;
	}