Staging: dt3155: rename dt3155_config_s
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 27 Apr 2010 23:51:50 +0000 (16:51 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:41 +0000 (11:35 -0700)
Drop the "_s", as it's not needed.

Now, dt3155.h is checkpatch.pl clean.

Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Scott Smedley <ss@aao.gov.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/dt3155/dt3155.h
drivers/staging/dt3155/dt3155_drv.c

index 74a71f6a8ebc374295d6db5da01d932678a10eab..b99b5271d1582bc4fce58c996b54433d063c80b6 100644 (file)
@@ -60,7 +60,7 @@ MA 02111-1307 USA
 #endif
 
 /* Configuration structure */
-struct dt3155_config_s {
+struct dt3155_config {
        u32 acq_mode;
        u32 cols, rows;
        u32 continuous;
@@ -116,7 +116,7 @@ struct dt3155_status {
        u32 mem_addr;   /* Buffer start addr for this card */
        u32 mem_size;   /* This is the amount of mem available  */
        u32 irq;                /* this card's irq */
-       struct dt3155_config_s config;          /* configuration struct */
+       struct dt3155_config config;            /* configuration struct */
        struct dt3155_fbuffer_s fbuffer;        /* frame buffer state struct */
        u32 state;              /* this card's state */
        u32 device_installed;   /* Flag if installed. 1=installed */
@@ -134,7 +134,7 @@ extern struct dt3155_status dt3155_status[MAXBOARDS];
 
 #define DT3155_IOC_MAGIC       '!'
 
-#define DT3155_SET_CONFIG      _IOW(DT3155_IOC_MAGIC, 1, struct dt3155_config_s)
+#define DT3155_SET_CONFIG      _IOW(DT3155_IOC_MAGIC, 1, struct dt3155_config)
 #define DT3155_GET_CONFIG      _IOR(DT3155_IOC_MAGIC, 2, struct dt3155_status)
 #define DT3155_STOP            _IO(DT3155_IOC_MAGIC, 3)
 #define DT3155_START           _IO(DT3155_IOC_MAGIC, 4)
index 3e8ceac3d9b9e8a086527ec814a17d0e0ce134d7..789d47ae3e03c00e98ca9a44cea6bba762df3bc4 100644 (file)
@@ -546,7 +546,7 @@ static int dt3155_ioctl(struct inode *inode,
          return -EBUSY;
 
        {
-         struct dt3155_config_s tmp;
+         struct dt3155_config tmp;
          if (copy_from_user((void *)&tmp, (void *) arg, sizeof(tmp)))
              return -EFAULT;
          /* check for valid settings */