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

Commit 516c32f6 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Michael Ellerman
Browse files

macintosh/ams-input: Use true and false for boolean values



Assign true or false to boolean variables instead of an integer value.

This issue was detected with the help of Coccinelle

Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Reviewed-by: default avatarMichael Hanselmann <public@hansmi.ch>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 4f256d56
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -91,7 +91,7 @@ static int ams_input_enable(void)
		return error;
	}

	joystick = 1;
	joystick = true;

	return 0;
}
@@ -104,7 +104,7 @@ static void ams_input_disable(void)
		ams_info.idev = NULL;
	}

	joystick = 0;
	joystick = false;
}

static ssize_t ams_input_show_joystick(struct device *dev,