aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2009-02-25 15:41:16 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 17:54:24 -0400
commitbc154a3862260ef8d83ff750daa1b6cfbfa129cc (patch)
tree8990991af93ed31a56f1fb5cee0d4f8180dec123 /drivers
parent441926795d77a3da1be99dca1720130cf46c728b (diff)
Staging: heci: fix checkpatch warnings
This resolves the outstanding scripts/checkpatch.pl warnings Cc: Anas Nashif <anas.nashif@intel.com> Cc: Marcin Obara <marcin.obara@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/heci/heci_main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/heci/heci_main.c b/drivers/staging/heci/heci_main.c
index 6782fe9f785a..3db9a0388645 100644
--- a/drivers/staging/heci/heci_main.c
+++ b/drivers/staging/heci/heci_main.c
@@ -175,7 +175,7 @@ static struct pci_driver heci_driver = {
175/* 175/*
176 * file operations structure will be use heci char device. 176 * file operations structure will be use heci char device.
177 */ 177 */
178static struct file_operations heci_fops = { 178static const struct file_operations heci_fops = {
179 .owner = THIS_MODULE, 179 .owner = THIS_MODULE,
180 .read = heci_read, 180 .read = heci_read,
181 .ioctl = heci_ioctl, 181 .ioctl = heci_ioctl,
@@ -195,7 +195,7 @@ static struct file_operations heci_fops = {
195 * returns 0 on success, <0 on failure. 195 * returns 0 on success, <0 on failure.
196 */ 196 */
197static int heci_registration_cdev(struct cdev *dev, int hminor, 197static int heci_registration_cdev(struct cdev *dev, int hminor,
198 struct file_operations *fops) 198 const struct file_operations *fops)
199{ 199{
200 int ret, devno = MKDEV(heci_major, hminor); 200 int ret, devno = MKDEV(heci_major, hminor);
201 201
@@ -625,7 +625,7 @@ static int heci_clear_list(struct iamt_heci_device *dev,
625 struct file *file, struct list_head *heci_cb_list) 625 struct file *file, struct list_head *heci_cb_list)
626{ 626{
627 struct heci_cb_private *priv_cb_pos = NULL; 627 struct heci_cb_private *priv_cb_pos = NULL;
628 struct heci_cb_private*priv_cb_next = NULL; 628 struct heci_cb_private *priv_cb_next = NULL;
629 struct file *file_temp; 629 struct file *file_temp;
630 int rets = 0; 630 int rets = 0;
631 631
@@ -846,7 +846,7 @@ static int heci_release(struct inode *inode, struct file *file)
846 } 846 }
847 847
848 if (heci_clear_lists(dev, file)) 848 if (heci_clear_lists(dev, file))
849 dev->iamthif_state = HECI_IAMTHIF_IDLE; 849 dev->iamthif_state = HECI_IAMTHIF_IDLE;
850 850
851 spin_unlock_bh(&dev->device_lock); 851 spin_unlock_bh(&dev->device_lock);
852 } 852 }