Commit d96caf8c authored by Clifton Barnes's avatar Clifton Barnes Committed by Dmitry Torokhov

Input: rotary-encoder - fix bare use of 'unsigned'

fix checkpatch.pl warning about 'Prefer 'unsigned int' to bare use of
'unsigned''
Signed-off-by: default avatarClifton Barnes <clifton.a.barnes@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent d144cf42
......@@ -47,13 +47,13 @@ struct rotary_encoder {
bool armed;
signed char dir; /* 1 - clockwise, -1 - CCW */
unsigned last_stable;
unsigned int last_stable;
};
static unsigned rotary_encoder_get_state(struct rotary_encoder *encoder)
static unsigned int rotary_encoder_get_state(struct rotary_encoder *encoder)
{
int i;
unsigned ret = 0;
unsigned int ret = 0;
for (i = 0; i < encoder->gpios->ndescs; ++i) {
int val = gpiod_get_value_cansleep(encoder->gpios->desc[i]);
......@@ -100,7 +100,7 @@ static void rotary_encoder_report_event(struct rotary_encoder *encoder)
static irqreturn_t rotary_encoder_irq(int irq, void *dev_id)
{
struct rotary_encoder *encoder = dev_id;
unsigned state;
unsigned int state;
mutex_lock(&encoder->access_mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment