Version:  2.0.40 2.2.26 2.4.37 3.9 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6

Linux/drivers/media/usb/gspca/spca1528.c

  1 /*
  2  * spca1528 subdriver
  3  *
  4  * Copyright (C) 2010-2011 Jean-Francois Moine (http://moinejf.free.fr)
  5  *
  6  * This program is free software; you can redistribute it and/or modify
  7  * it under the terms of the GNU General Public License as published by
  8  * the Free Software Foundation; either version 2 of the License, or
  9  * any later version.
 10  *
 11  * This program is distributed in the hope that it will be useful,
 12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
 13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 14  * GNU General Public License for more details.
 15  *
 16  * You should have received a copy of the GNU General Public License
 17  * along with this program; if not, write to the Free Software
 18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 19  */
 20 
 21 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 22 
 23 #define MODULE_NAME "spca1528"
 24 
 25 #include "gspca.h"
 26 #include "jpeg.h"
 27 
 28 MODULE_AUTHOR("Jean-Francois Moine <http://moinejf.free.fr>");
 29 MODULE_DESCRIPTION("SPCA1528 USB Camera Driver");
 30 MODULE_LICENSE("GPL");
 31 
 32 /* specific webcam descriptor */
 33 struct sd {
 34         struct gspca_dev gspca_dev;     /* !! must be the first item */
 35 
 36         u8 pkt_seq;
 37 
 38         u8 jpeg_hdr[JPEG_HDR_SZ];
 39 };
 40 
 41