aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/ff-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/ff-core.c')
-rw-r--r--drivers/input/ff-core.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/drivers/input/ff-core.c b/drivers/input/ff-core.c
index 8f2042432c85..66a46c84e28f 100644
--- a/drivers/input/ff-core.c
+++ b/drivers/input/ff-core.c
@@ -237,9 +237,15 @@ int input_ff_erase(struct input_dev *dev, int effect_id, struct file *file)
237EXPORT_SYMBOL_GPL(input_ff_erase); 237EXPORT_SYMBOL_GPL(input_ff_erase);
238 238
239/* 239/*
240 * flush_effects - erase all effects owned by a file handle 240 * input_ff_flush - erase all effects owned by a file handle
241 * @dev: input device to erase effect from
242 * @file: purported owner of the effects
243 *
244 * This function erases all force-feedback effects associated with
245 * the given owner from specified device. Note that @file may be %NULL,
246 * in which case all effects will be erased.
241 */ 247 */
242static int flush_effects(struct input_dev *dev, struct file *file) 248int input_ff_flush(struct input_dev *dev, struct file *file)
243{ 249{
244 struct ff_device *ff = dev->ff; 250 struct ff_device *ff = dev->ff;
245 int i; 251 int i;
@@ -255,6 +261,7 @@ static int flush_effects(struct input_dev *dev, struct file *file)
255 261
256 return 0; 262 return 0;
257} 263}
264EXPORT_SYMBOL_GPL(input_ff_flush);
258 265
259/** 266/**
260 * input_ff_event() - generic handler for force-feedback events 267 * input_ff_event() - generic handler for force-feedback events
@@ -343,7 +350,7 @@ int input_ff_create(struct input_dev *dev, unsigned int max_effects)
343 mutex_init(&ff->mutex); 350 mutex_init(&ff->mutex);
344 351
345 dev->ff = ff; 352 dev->ff = ff;
346 dev->flush = flush_effects; 353 dev->flush = input_ff_flush;
347 dev->event = input_ff_event; 354 dev->event = input_ff_event;
348 __set_bit(EV_FF, dev->evbit); 355 __set_bit(EV_FF, dev->evbit);
349 356