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

Commit 3ac76904 authored by Dominique van den Broeck's avatar Dominique van den Broeck Committed by Greg Kroah-Hartman
Browse files

staging: panel: (coding style) Matching braces



Style-only modifications to comply with checkpatch.pl --strict --file.
. Adds every missing brace in condition statements.

Signed-off-by: default avatarDominique van den Broeck <domdevlin@free.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6a4193a2
Loading
Loading
Loading
Loading
+11 −10
Original line number Original line Diff line number Diff line
@@ -711,10 +711,9 @@ static void pin_to_bits(int pin, unsigned char *d_val, unsigned char *c_val)
/* sleeps that many milliseconds with a reschedule */
/* sleeps that many milliseconds with a reschedule */
static void long_sleep(int ms)
static void long_sleep(int ms)
{
{

	if (in_interrupt()) {
	if (in_interrupt())
		mdelay(ms);
		mdelay(ms);
	else {
	} else {
		current->state = TASK_INTERRUPTIBLE;
		current->state = TASK_INTERRUPTIBLE;
		schedule_timeout((ms * HZ + 999) / 1000);
		schedule_timeout((ms * HZ + 999) / 1000);
	}
	}
@@ -1141,13 +1140,13 @@ static inline int handle_lcd_special_code(void)
		value = 0;
		value = 0;
		while (*esc && cgoffset < 8) {
		while (*esc && cgoffset < 8) {
			shift ^= 4;
			shift ^= 4;
			if (*esc >= '0' && *esc <= '9')
			if (*esc >= '0' && *esc <= '9') {
				value |= (*esc - '0') << shift;
				value |= (*esc - '0') << shift;
			else if (*esc >= 'A' && *esc <= 'Z')
			} else if (*esc >= 'A' && *esc <= 'Z') {
				value |= (*esc - 'A' + 10) << shift;
				value |= (*esc - 'A' + 10) << shift;
			else if (*esc >= 'a' && *esc <= 'z')
			} else if (*esc >= 'a' && *esc <= 'z') {
				value |= (*esc - 'a' + 10) << shift;
				value |= (*esc - 'a' + 10) << shift;
			else {
			} else {
				esc++;
				esc++;
				continue;
				continue;
			}
			}
@@ -1183,9 +1182,10 @@ static inline int handle_lcd_special_code(void)
				esc++;
				esc++;
				if (kstrtoul(esc, 10, &lcd_addr_y) < 0)
				if (kstrtoul(esc, 10, &lcd_addr_y) < 0)
					break;
					break;
			} else
			} else {
				break;
				break;
			}
			}
		}


		lcd_gotoxy();
		lcd_gotoxy();
		processed = 1;
		processed = 1;
@@ -1973,10 +1973,11 @@ static int input_name2mask(const char *name, pmask_t *mask, pmask_t *value,
		if (isdigit(*name)) {
		if (isdigit(*name)) {
			out = *name - '0';
			out = *name - '0';
			om |= (1 << out);
			om |= (1 << out);
		} else if (*name == '-')
		} else if (*name == '-') {
			out = 8;
			out = 8;
		else
		} else {
			return 0;	/* unknown bit name */
			return 0;	/* unknown bit name */
		}


		bit = (out * 5) + in;
		bit = (out * 5) + in;