Skip to content
Commit 9460b652 authored by Hans-Christian Egtvedt's avatar Hans-Christian Egtvedt Committed by Dmitry Torokhov
Browse files

Input: ads7846 - optimize order of calculating Rt in ads7846_rx()



Alter the if expression for calculating Rt. The old implementation would
run unnecessary code when the ADS7843 device was used.

The patch also fixes the code style to kernel standard.

Signed-off-by: default avatarHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 494f6857
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