[PATCH 2/2] staging: android: Fixed coding style issue reported by checkpatch

From: Saiyam Doshi
Date: Tue Mar 08 2016 - 13:58:45 EST


spinlock_t definition without comment

Signed-off-by: Saiyam Doshi <saiyamdoshi.in@xxxxxxxxx>
---
drivers/staging/android/timed_gpio.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/staging/android/timed_gpio.c b/drivers/staging/android/timed_gpio.c
index bcd9924..cede99a 100644
--- a/drivers/staging/android/timed_gpio.c
+++ b/drivers/staging/android/timed_gpio.c
@@ -28,6 +28,7 @@
struct timed_gpio_data {
struct timed_output_dev dev;
struct hrtimer timer;
+ /* lock protects gpio access while setting it's value */
spinlock_t lock;
unsigned gpio;
int max_timeout;
--
1.9.1


--GLp9dJVi+aaipsRk--