diff options
author | Jean-François Moine <moinejf@free.fr> | 2012-02-27 06:26:05 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-03-08 06:04:02 -0500 |
commit | 0b74e2c460a4a3977f40c40580f1d7af4f976447 (patch) | |
tree | ee98337eb3cdfe5ab5086265513d41cee8d955ca /drivers/media/video/gspca/zc3xx.c | |
parent | 1b3b21206b7506a1abdd411419bc871438efc89c (diff) |
[media] gspca - zc3xx: Cleanup source
- copyright change
- use the kbuild module name for messages
- remove useless comments
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/zc3xx.c')
-rw-r--r-- | drivers/media/video/gspca/zc3xx.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c index 4ad1cd1f95e7..2ff96ca2ceec 100644 --- a/drivers/media/video/gspca/zc3xx.c +++ b/drivers/media/video/gspca/zc3xx.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Z-Star/Vimicro zc301/zc302p/vc30x library | 2 | * Z-Star/Vimicro zc301/zc302p/vc30x driver |
3 | * | 3 | * |
4 | * Copyright (C) 2009-2011 Jean-Francois Moine <http://moinejf.free.fr> | 4 | * Copyright (C) 2009-2012 Jean-Francois Moine <http://moinejf.free.fr> |
5 | * Copyright (C) 2004 2005 2006 Michel Xhaard mxhaard@magic.fr | 5 | * Copyright (C) 2004 2005 2006 Michel Xhaard mxhaard@magic.fr |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -21,8 +21,6 @@ | |||
21 | 21 | ||
22 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | 22 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
23 | 23 | ||
24 | #define MODULE_NAME "zc3xx" | ||
25 | |||
26 | #include <linux/input.h> | 24 | #include <linux/input.h> |
27 | #include "gspca.h" | 25 | #include "gspca.h" |
28 | #include "jpeg.h" | 26 | #include "jpeg.h" |
@@ -3897,7 +3895,6 @@ static const struct usb_action pas106b_Initial[] = { /* 352x288 */ | |||
3897 | /* Gains */ | 3895 | /* Gains */ |
3898 | {0xa0, 0x20, ZC3XX_R1A9_DIGITALLIMITDIFF}, | 3896 | {0xa0, 0x20, ZC3XX_R1A9_DIGITALLIMITDIFF}, |
3899 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, | 3897 | {0xa0, 0x26, ZC3XX_R1AA_DIGITALGAINSTEP}, |
3900 | {0xa0, 0xa0, ZC3XX_R11D_GLOBALGAIN}, | ||
3901 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, | 3898 | {0xa0, 0x60, ZC3XX_R11D_GLOBALGAIN}, |
3902 | /* Auto correction */ | 3899 | /* Auto correction */ |
3903 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, | 3900 | {0xa0, 0x40, ZC3XX_R180_AUTOCORRECTENABLE}, |
@@ -6628,7 +6625,6 @@ static int sd_init(struct gspca_dev *gspca_dev) | |||
6628 | case 0x0e: | 6625 | case 0x0e: |
6629 | PDEBUG(D_PROBE, "Find Sensor PAS202B"); | 6626 | PDEBUG(D_PROBE, "Find Sensor PAS202B"); |
6630 | sd->sensor = SENSOR_PAS202B; | 6627 | sd->sensor = SENSOR_PAS202B; |
6631 | /* sd->sharpness = 1; */ | ||
6632 | break; | 6628 | break; |
6633 | case 0x0f: | 6629 | case 0x0f: |
6634 | PDEBUG(D_PROBE, "Find Sensor PAS106"); | 6630 | PDEBUG(D_PROBE, "Find Sensor PAS106"); |
@@ -6907,7 +6903,8 @@ static int sd_start(struct gspca_dev *gspca_dev) | |||
6907 | switch (sd->sensor) { | 6903 | switch (sd->sensor) { |
6908 | case SENSOR_HV7131R: | 6904 | case SENSOR_HV7131R: |
6909 | case SENSOR_PAS202B: | 6905 | case SENSOR_PAS202B: |
6910 | sd->work_thread = create_singlethread_workqueue(MODULE_NAME); | 6906 | sd->work_thread = |
6907 | create_singlethread_workqueue(KBUILD_MODNAME); | ||
6911 | queue_work(sd->work_thread, &sd->work); | 6908 | queue_work(sd->work_thread, &sd->work); |
6912 | break; | 6909 | break; |
6913 | } | 6910 | } |
@@ -7053,7 +7050,7 @@ static int sd_int_pkt_scan(struct gspca_dev *gspca_dev, | |||
7053 | #endif | 7050 | #endif |
7054 | 7051 | ||
7055 | static const struct sd_desc sd_desc = { | 7052 | static const struct sd_desc sd_desc = { |
7056 | .name = MODULE_NAME, | 7053 | .name = KBUILD_MODNAME, |
7057 | .ctrls = sd_ctrls, | 7054 | .ctrls = sd_ctrls, |
7058 | .nctrls = ARRAY_SIZE(sd_ctrls), | 7055 | .nctrls = ARRAY_SIZE(sd_ctrls), |
7059 | .config = sd_config, | 7056 | .config = sd_config, |
@@ -7138,7 +7135,7 @@ static int sd_probe(struct usb_interface *intf, | |||
7138 | 7135 | ||
7139 | /* USB driver */ | 7136 | /* USB driver */ |
7140 | static struct usb_driver sd_driver = { | 7137 | static struct usb_driver sd_driver = { |
7141 | .name = MODULE_NAME, | 7138 | .name = KBUILD_MODNAME, |
7142 | .id_table = device_table, | 7139 | .id_table = device_table, |
7143 | .probe = sd_probe, | 7140 | .probe = sd_probe, |
7144 | .disconnect = gspca_disconnect, | 7141 | .disconnect = gspca_disconnect, |