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

Commit 064191b6 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hwmon: epm_adc: Fix return code during gpio configure"

parents 65d09834 6f60b2e9
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -267,10 +267,8 @@ static long epm_adc_ioctl(struct file *file, unsigned int cmd,
			int rc;

			rc = epm_adc_psoc_gpio_init(epm_adc, true);
			if (rc) {
			if (rc)
				pr_err("GPIO init failed with %d\n", rc);
				return -EINVAL;
			}

			if (copy_to_user((void __user *)arg, &rc,
						sizeof(int)))
@@ -299,10 +297,8 @@ static long epm_adc_ioctl(struct file *file, unsigned int cmd,
				return -EFAULT;

			rc = epm_psoc_generic_request(epm_adc, &psoc_get_data);
			if (rc) {
			if (rc)
				pr_err("Generic request failed\n");
				return -EINVAL;
			}

			if (copy_to_user((void __user *)arg, &psoc_get_data,
				sizeof(struct