Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Input: zforce_ts - remove assert/deassert wrappers

The wrappers are extremely simple, used once, and do not bring much
value. Remove them.

Tested-by: Andreas Kemnade <andreas@kemnade.info> # Tolino Shine2HD
Link: https://lore.kernel.org/r/20240824055047.1706392-18-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

+2 -12
+2 -12
drivers/input/touchscreen/zforce_ts.c
··· 146 146 return 0; 147 147 } 148 148 149 - static void zforce_reset_assert(struct zforce_ts *ts) 150 - { 151 - gpiod_set_value_cansleep(ts->gpio_rst, 1); 152 - } 153 - 154 - static void zforce_reset_deassert(struct zforce_ts *ts) 155 - { 156 - gpiod_set_value_cansleep(ts->gpio_rst, 0); 157 - } 158 - 159 149 static int zforce_send_wait(struct zforce_ts *ts, const char *buf, int len) 160 150 { 161 151 struct i2c_client *client = ts->client; ··· 662 672 { 663 673 struct zforce_ts *ts = data; 664 674 665 - zforce_reset_assert(ts); 675 + gpiod_set_value_cansleep(ts->gpio_rst, 1); 666 676 udelay(10); 667 677 } 668 678 ··· 797 807 i2c_set_clientdata(client, ts); 798 808 799 809 /* let the controller boot */ 800 - zforce_reset_deassert(ts); 810 + gpiod_set_value_cansleep(ts->gpio_rst, 0); 801 811 802 812 ts->command_waiting = NOTIFICATION_BOOTCOMPLETE; 803 813 if (wait_for_completion_timeout(&ts->command_done, WAIT_TIMEOUT) == 0)