vibrator: tspdrv: clean up codes
Change-Id: I85ecec9fb01e21ea0cdf3fda1c43851c26c7f552
diff --git a/drivers/misc/tspdrv/VibeOSKernelLinuxHRTime.c b/drivers/misc/tspdrv/VibeOSKernelLinuxHRTime.c
index b84aee3..2eac14b 100644
--- a/drivers/misc/tspdrv/VibeOSKernelLinuxHRTime.c
+++ b/drivers/misc/tspdrv/VibeOSKernelLinuxHRTime.c
@@ -1,36 +1,33 @@
/*
-** =========================================================================
-** File:
-** VibeOSKernelLinuxHRTime.c
-**
-** Description:
-** High Resolution Time helper functions for Linux.
-**
-** Portions Copyright (c) 2010-2011 Immersion Corporation. All Rights Reserved.
-**
-** This file contains Original Code and/or Modifications of Original Code
-** as defined in and that are subject to the GNU Public License v2 -
-** (the 'License'). You may not use this file except in compliance with the
-** License. You should have received a copy of the GNU General Public License
-** along with this program; if not, write to the Free Software Foundation, Inc.,
-** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or contact
-** TouchSenseSales@immersion.com.
-**
-** The Original Code and all software distributed under the License are
-** distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
-** EXPRESS OR IMPLIED, AND IMMERSION HEREBY DISCLAIMS ALL SUCH WARRANTIES,
-** INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
-** FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see
-** the License for the specific language governing rights and limitations
-** under the License.
-** =========================================================================
-*/
+ * File: VibeOSKernelLinuxHRTime.c
+ *
+ * Description:
+ * High Resolution Time helper functions for Linux.
+ *
+ * Portions Copyright (c) 2010-2011 Immersion Corporation. All Rights Reserved.
+ *
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the GNU Public License v2 -
+ * (the 'License'). You may not use this file except in compliance with the
+ * License. You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or contact
+ * TouchSenseSales@immersion.com.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * EXPRESS OR IMPLIED, AND IMMERSION HEREBY DISCLAIMS ALL SUCH WARRANTIES,
+ * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS
+ * FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see
+ * the License for the specific language governing rights and limitations
+ * under the License.
+ */
/*
-** Kernel high-resolution software timer is used as an example but another type
-** of timer (such as HW timer or standard software timer) might be used to achieve
-** the 5ms required rate.
-*/
+ * Kernel high-resolution software timer is used as an example but another type
+ * of timer (such as HW timer or standard software timer) might be used to achieve
+ * the 5ms required rate.
+ */
#ifndef CONFIG_HIGH_RES_TIMERS
#warning "The Kernel does not have high resolution timers enabled. Either provide a non hr-timer implementation of VibeOSKernelLinuxTime.c or re-compile your kernel with CONFIG_HIGH_RES_TIMERS=y"
@@ -202,10 +199,11 @@
return;
/*
- ** Use interruptible version of down to be safe
- ** (try to not being stuck here if the mutex is not freed for any reason)
- */
- /* wait for the mutex to be freed by the timer */
+ * Use interruptible version of down to be safe
+ * (try to not being stuck here
+ * if the mutex is not freed for any reason)
+ * wait for the mutex to be freed by the timer
+ */
res = down_interruptible(&g_hMutex);
if (res != 0) {
DbgOut((KERN_INFO "VibeOSKernelLinuxStartTimer: down_interruptible interrupted by a signal.\n"));