[PATCH 2/2] Input: analog: Fix coding style - indentation and parenthesis spacing

From: Akash Sukhavasi

Date: Mon Apr 13 2026 - 18:24:39 EST


The checkpatch.pl script reports minor whitespace and indentation
warnings in the analog joystick driver. Specifically, there is a
misaligned port->loop assignment using spaces instead of tabs, and
an extraneous space before a closing parenthesis in the
ANALOG_BTNS_TLR mask expression.

Signed-off-by: Akash Sukhavasi <akash.sukhavasi@xxxxxxxxx>
---
drivers/input/joystick/analog.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/input/joystick/analog.c b/drivers/input/joystick/analog.c
index 6e1255a82..04fd5b119 100644
--- a/drivers/input/joystick/analog.c
+++ b/drivers/input/joystick/analog.c
@@ -330,7 +330,7 @@ static void analog_calibrate_timer(struct analog_port *port)
tx = t;
}

- port->loop = tx / 50;
+ port->loop = tx / 50;
}

/*
@@ -490,7 +490,7 @@ static int analog_init_masks(struct analog_port *port)
| ((~analog[0].mask & ANALOG_HAT_FCS) << 4);

analog[0].mask &= ~(ANALOG_THROTTLE | ANALOG_RUDDER)
- | (((~analog[0].mask & ANALOG_BTNS_TLR ) >> 10)
+ | (((~analog[0].mask & ANALOG_BTNS_TLR) >> 10)
& ((~analog[0].mask & ANALOG_BTNS_TLR2) >> 12));

analog[1].mask = ((i >> 20) & 0xff) | ((i >> 12) & 0xf0000);
--
2.53.0