diff options
author | Marc Dietrich <marvin24@gmx.de> | 2011-09-27 19:00:40 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-09-29 17:40:37 -0700 |
commit | 162c7d8c4be2d599583c42c2a8fe99bed6d87f67 (patch) | |
tree | 3ce4ae5fb7269e378e9f26d15433c41209b5fd0e /drivers/staging/nvec/nvec.h | |
parent | 7974035c008d98ec23ec76d9f10bff2dfd866ecf (diff) | |
download | op-kernel-dev-162c7d8c4be2d599583c42c2a8fe99bed6d87f67.zip op-kernel-dev-162c7d8c4be2d599583c42c2a8fe99bed6d87f67.tar.gz |
staging: nvec: coding style fixes / add copyright notice
This patch fixes coding style and adds copyright notices.
Signed-off-by: Marc Dietrich <marvin24@gmx.de>
[jak@jak-linux.org: Merge later cleanup into that patch]
Signed-off-by: Julian Andres Klode <jak@jak-linux.org>
Acked-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/nvec/nvec.h')
-rw-r--r-- | drivers/staging/nvec/nvec.h | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/drivers/staging/nvec/nvec.h b/drivers/staging/nvec/nvec.h index 7cf9b01..fe11225 100644 --- a/drivers/staging/nvec/nvec.h +++ b/drivers/staging/nvec/nvec.h @@ -1,3 +1,18 @@ +/* + * NVEC: NVIDIA compliant embedded controller interface + * + * Copyright (C) 2011 The AC100 Kernel Team <ac100@lists.launchpad.net> + * + * Authors: Pierre-Hugues Husson <phhusson@free.fr> + * Ilya Petrov <ilya.muromec@gmail.com> + * Marc Dietrich <marvin24@gmx.de> + * + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive + * for more details. + * + */ + #ifndef __LINUX_MFD_NVEC #define __LINUX_MFD_NVEC @@ -17,7 +32,7 @@ typedef enum { } how_care; typedef enum { - NVEC_SYS=1, + NVEC_SYS = 1, NVEC_BAT, NVEC_KBD = 5, NVEC_PS2, @@ -27,9 +42,9 @@ typedef enum { } nvec_event; typedef enum { - NVEC_WAIT, - NVEC_READ, - NVEC_WRITE + NVEC_WAIT, + NVEC_READ, + NVEC_WRITE } nvec_state; struct nvec_msg { @@ -64,22 +79,27 @@ struct nvec_chip { struct work_struct rx_work, tx_work; struct nvec_msg *rx, *tx; -/* sync write stuff */ + /* sync write stuff */ struct semaphore sync_write_mutex; struct completion sync_write; u16 sync_write_pending; struct nvec_msg *last_sync_msg; }; -extern void nvec_write_async(struct nvec_chip *nvec, unsigned char *data, short size); +extern void nvec_write_async(struct nvec_chip *nvec, const unsigned char *data, + short size); extern int nvec_register_notifier(struct nvec_chip *nvec, - struct notifier_block *nb, unsigned int events); + struct notifier_block *nb, + unsigned int events); extern int nvec_unregister_notifier(struct device *dev, - struct notifier_block *nb, unsigned int events); + struct notifier_block *nb, + unsigned int events); -const char *nvec_send_msg(unsigned char *src, unsigned char *dst_size, how_care care_resp, void (*rt_handler)(unsigned char *data)); +const char *nvec_send_msg(unsigned char *src, unsigned char *dst_size, + how_care care_resp, + void (*rt_handler) (unsigned char *data)); #define I2C_CNFG 0x00 #define I2C_CNFG_PACKET_MODE_EN (1<<10) |