summaryrefslogtreecommitdiffstats
path: root/drivers/staging/android/timed_output.h
diff options
context:
space:
mode:
authorRob Herring2016-03-24 21:58:17 +0100
committerGreg Kroah-Hartman2016-03-31 03:31:37 +0200
commit9f6b68774f29692f3e5b87e8eae29da61c3b1171 (patch)
tree4c9ba847de247b2cd812d19a5539d0327057230d /drivers/staging/android/timed_output.h
parentstaging: unisys: remove wmb() in visordriver_remove_device (diff)
downloadkernel-qcow2-linux-9f6b68774f29692f3e5b87e8eae29da61c3b1171.tar.gz
kernel-qcow2-linux-9f6b68774f29692f3e5b87e8eae29da61c3b1171.tar.xz
kernel-qcow2-linux-9f6b68774f29692f3e5b87e8eae29da61c3b1171.zip
android: remove timed output/gpio driver
timed_output was only used by the Android vibrator HAL which has now learned how to use LED triggers instead[1]. Any users of it in AOSP are on ancient kernels. Adding support for LED triggers is purely DT changes and proper kernel config. [1] https://android.googlesource.com/platform%2Fhardware%2Flibhardware/+/61701df363310a5cbd95e3e1638baa9526e42c9b Cc: John Stultz <john.stultz@linaro.org> Cc: "Arve Hjønnevåg" <arve@android.com> Cc: Riley Andrews <riandrews@android.com> Signed-off-by: Rob Herring <robh@kernel.org> Acked-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/android/timed_output.h')
-rw-r--r--drivers/staging/android/timed_output.h37
1 files changed, 0 insertions, 37 deletions
diff --git a/drivers/staging/android/timed_output.h b/drivers/staging/android/timed_output.h
deleted file mode 100644
index 13d2ca51cbe8..000000000000
--- a/drivers/staging/android/timed_output.h
+++ /dev/null
@@ -1,37 +0,0 @@
-/* include/linux/timed_output.h
- *
- * Copyright (C) 2008 Google, Inc.
- *
- * This software is licensed under the terms of the GNU General Public
- * License version 2, as published by the Free Software Foundation, and
- * may be copied, distributed, and modified under those terms.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
-*/
-
-#ifndef _LINUX_TIMED_OUTPUT_H
-#define _LINUX_TIMED_OUTPUT_H
-
-struct timed_output_dev {
- const char *name;
-
- /* enable the output and set the timer */
- void (*enable)(struct timed_output_dev *sdev, int timeout);
-
- /* returns the current number of milliseconds remaining on the timer */
- int (*get_time)(struct timed_output_dev *sdev);
-
- /* private data */
- struct device *dev;
- int index;
- int state;
-};
-
-int timed_output_dev_register(struct timed_output_dev *dev);
-void timed_output_dev_unregister(struct timed_output_dev *dev);
-
-#endif