]> git.baikalelectronics.ru Git - kernel.git/commit
Input: bu21013_ts - rename some variables
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 8 Aug 2019 21:19:36 +0000 (14:19 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 2 Sep 2019 16:06:52 +0000 (09:06 -0700)
commit958e56fc708e1644e4ccea888c6aa995100c6b0c
tree5bf08271ec59eb574265f1daa6d46261e24afe6c
parent36a86d792f1cd57fdd7198424d69b23569a236df
Input: bu21013_ts - rename some variables

"bu21013_data" and "struct bu21013_ts_data" are a tad long, let's call them
"ts" and "struct bu21013_ts".

Also rename retval to error in bu21013_init_chip() and adjust formatting;
i2c_smbus_write_byte_data() returns negative on error and 0 on success, so
we simply test if whether erro is 0 or not.

Tested-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/bu21013_ts.c