]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ads7846 - optimize order of calculating Rt in ads7846_rx()
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Wed, 23 Jul 2008 18:38:27 +0000 (14:38 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 23 Jul 2008 18:41:28 +0000 (14:41 -0400)
commit8536d623a1845c2cd8a38114a2a6640ab9960d24
tree53c1bd90ef0510c661cb52a011bd274983322801
parent70ff9565a46ddb87e785c142b32abc757f392970
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: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ads7846.c