]> git.karo-electronics.de Git - linux-beck.git/commitdiff
extcon: gpio: Fix code cleanup
authorGeorge Cherian <george.cherian@ti.com>
Tue, 9 Sep 2014 04:14:34 +0000 (09:44 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 22 Sep 2014 07:48:47 +0000 (16:48 +0900)
This patch fixes following minor cleanup:
 - Order the include files in alphabetical order.
 - Fix description of state_off in extcon_gpio.h
 - Add a descrition for check_on_resume in extcon_gpio.h

Signed-off-by: George Cherian <george.cherian@ti.com>
[Modify the name/description of patch to keep standary codiyg style by Chanwoo Choi]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-gpio.c
include/linux/extcon/extcon-gpio.h

index 5b7ec274cb637572edacb0fe6e59f3a502ac5cc5..72f19a37fd01c0266e7c504cf091f0e058b828b9 100644 (file)
  *
 */
 
-#include <linux/module.h>
-#include <linux/kernel.h>
+#include <linux/extcon.h>
+#include <linux/extcon/extcon-gpio.h>
+#include <linux/gpio.h>
 #include <linux/init.h>
 #include <linux/interrupt.h>
+#include <linux/kernel.h>
+#include <linux/module.h>
 #include <linux/platform_device.h>
 #include <linux/slab.h>
 #include <linux/workqueue.h>
-#include <linux/gpio.h>
-#include <linux/extcon.h>
-#include <linux/extcon/extcon-gpio.h>
 
 struct gpio_extcon_data {
        struct extcon_dev *edev;
index 8900fdf511c6acf91f71c67894f32c26cb7fbfbd..0b17ad43fbfcefd062b3902dd615e1af45f6b245 100644 (file)
  * @irq_flags:         IRQ Flags (e.g., IRQF_TRIGGER_LOW).
  * @state_on:          print_state is overriden with state_on if attached.
  *                     If NULL, default method of extcon class is used.
- * @state_off:         print_state is overriden with state_on if detached.
+ * @state_off:         print_state is overriden with state_off if detached.
  *                     If NUll, default method of extcon class is used.
+ * @check_on_resume:   Boolean describing whether to check the state of gpio
+ *                     while resuming from sleep.
  *
  * Note that in order for state_on or state_off to be valid, both state_on
  * and state_off should be not NULL. If at least one of them is NULL,