Skip to content

Commit a5ee351

Browse files
committed
Input: bu21013_ts - remove useless comments
The comments for individual functions in the driver do not provide any additional information beyond what function names indicate. Tested-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 0570bab commit a5ee351

1 file changed

Lines changed: 2 additions & 59 deletions

File tree

‎drivers/input/touchscreen/bu21013_ts.c‎

Lines changed: 2 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -159,14 +159,6 @@ struct bu21013_ts {
159159
bool touch_stopped;
160160
};
161161

162-
/**
163-
* bu21013_read_block_data(): read the touch co-ordinates
164-
* @data: bu21013_ts structure pointer
165-
* @buf: byte pointer
166-
*
167-
* Read the touch co-ordinates using i2c read block into buffer
168-
* and returns integer.
169-
*/
170162
static int bu21013_read_block_data(struct bu21013_ts *ts, u8 *buf)
171163
{
172164
int ret, i;
@@ -182,13 +174,6 @@ static int bu21013_read_block_data(struct bu21013_ts *ts, u8 *buf)
182174
return -EINVAL;
183175
}
184176

185-
/**
186-
* bu21013_do_touch_report(): Get the touch co-ordinates
187-
* @data: bu21013_ts structure pointer
188-
*
189-
* Get the touch co-ordinates from touch sensor registers and writes
190-
* into device structure and returns integer.
191-
*/
192177
static int bu21013_do_touch_report(struct bu21013_ts *ts)
193178
{
194179
u8 buf[LENGTH_OF_BUFFER];
@@ -243,14 +228,7 @@ static int bu21013_do_touch_report(struct bu21013_ts *ts)
243228

244229
return 0;
245230
}
246-
/**
247-
* bu21013_gpio_irq() - gpio thread function for touch interrupt
248-
* @irq: irq value
249-
* @device_data: void pointer
250-
*
251-
* This gpio thread function for touch interrupt
252-
* and returns irqreturn_t.
253-
*/
231+
254232
static irqreturn_t bu21013_gpio_irq(int irq, void *device_data)
255233
{
256234
struct bu21013_ts *ts = device_data;
@@ -273,13 +251,6 @@ static irqreturn_t bu21013_gpio_irq(int irq, void *device_data)
273251
return IRQ_HANDLED;
274252
}
275253

276-
/**
277-
* bu21013_init_chip() - power on sequence for the bu21013 controller
278-
* @data: device structure pointer
279-
*
280-
* This function is used to power on
281-
* the bu21013 controller and returns integer.
282-
*/
283254
static int bu21013_init_chip(struct bu21013_ts *ts)
284255
{
285256
struct i2c_client *client = ts->client;
@@ -468,14 +439,6 @@ bu21013_parse_dt(struct device *dev)
468439
}
469440
#endif
470441

471-
/**
472-
* bu21013_probe() - initializes the i2c-client touchscreen driver
473-
* @client: i2c client structure pointer
474-
* @id: i2c device id pointer
475-
*
476-
* This function used to initializes the i2c-client touchscreen
477-
* driver and returns integer.
478-
*/
479442
static int bu21013_probe(struct i2c_client *client,
480443
const struct i2c_device_id *id)
481444
{
@@ -606,13 +569,7 @@ static int bu21013_probe(struct i2c_client *client,
606569

607570
return error;
608571
}
609-
/**
610-
* bu21013_remove() - removes the i2c-client touchscreen driver
611-
* @client: i2c client structure pointer
612-
*
613-
* This function uses to remove the i2c-client
614-
* touchscreen driver and returns integer.
615-
*/
572+
616573
static int bu21013_remove(struct i2c_client *client)
617574
{
618575
struct bu21013_ts *ts = i2c_get_clientdata(client);
@@ -634,13 +591,6 @@ static int bu21013_remove(struct i2c_client *client)
634591
return 0;
635592
}
636593

637-
/**
638-
* bu21013_suspend() - suspend the touch screen controller
639-
* @dev: pointer to device structure
640-
*
641-
* This function is used to suspend the
642-
* touch panel controller and returns integer
643-
*/
644594
static int __maybe_unused bu21013_suspend(struct device *dev)
645595
{
646596
struct bu21013_ts *ts = dev_get_drvdata(dev);
@@ -657,13 +607,6 @@ static int __maybe_unused bu21013_suspend(struct device *dev)
657607
return 0;
658608
}
659609

660-
/**
661-
* bu21013_resume() - resume the touch screen controller
662-
* @dev: pointer to device structure
663-
*
664-
* This function is used to resume the touch panel
665-
* controller and returns integer.
666-
*/
667610
static int __maybe_unused bu21013_resume(struct device *dev)
668611
{
669612
struct bu21013_ts *ts = dev_get_drvdata(dev);

0 commit comments

Comments
 (0)