Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] gspca_pac7302: correct register documentation

R,G,B balance registers are 0x01-0x03 instead of 0x02-0x04,
which lead to the wrong conclusion that values are inverted.
Exposure is controlled via page 3 registers and this is already documented.
Also fix a whitespace issue.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>

authored by

Frank Schäfer and committed by
Mauro Carvalho Chehab
6f9b3312 2902fb7e

+5 -6
+5 -6
drivers/media/usb/gspca/pac7302.c
··· 29 29 * Register page 0: 30 30 * 31 31 * Address Description 32 - * 0x02 Red balance control 33 - * 0x03 Green balance control 34 - * 0x04 Blue balance control 35 - * Valus are inverted (0=max, 255=min). 32 + * 0x01 Red balance control 33 + * 0x02 Green balance control 34 + * 0x03 Blue balance control 36 35 * The Windows driver uses a quadratic approach to map 37 36 * the settable values (0-200) on register values: 38 - * min=0x80, default=0x40, max=0x20 39 - * 0x0f-0x20 Colors, saturation and exposure control 37 + * min=0x20, default=0x40, max=0x80 38 + * 0x0f-0x20 Color and saturation control 40 39 * 0xa2-0xab Brightness, contrast and gamma control 41 40 * 0xb6 Sharpness control (bits 0-4) 42 41 *