The patch number 9763 was added via Mauro Carvalho Chehab <[EMAIL PROTECTED]>
to http://linuxtv.org/hg/v4l-dvb master development tree.
Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel
If anyone has any objections, please let us know by sending a message to:
[EMAIL PROTECTED]
------
From: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
em28xx: fix gpio settings
A previous changeset moved gpio from em28xx struct into em28xx_board.
However, the driver were not updated to properly honor those gpio's.
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
linux/drivers/media/video/em28xx/em28xx-core.c | 4 ++--
linux/drivers/media/video/em28xx/em28xx.h | 3 ---
2 files changed, 2 insertions(+), 5 deletions(-)
diff -r 831988d5b7b2 -r 86a23dda5b87
linux/drivers/media/video/em28xx/em28xx-core.c
--- a/linux/drivers/media/video/em28xx/em28xx-core.c Thu Nov 27 08:46:59
2008 -0200
+++ b/linux/drivers/media/video/em28xx/em28xx-core.c Thu Nov 27 10:00:00
2008 -0200
@@ -784,9 +784,9 @@ int em28xx_set_mode(struct em28xx *dev,
dev->mode = set_mode;
if (dev->mode == EM28XX_DIGITAL_MODE)
- return em28xx_gpio_set(dev, dev->digital_gpio);
+ return em28xx_gpio_set(dev, dev->board.dvb_gpio);
else
- return em28xx_gpio_set(dev, dev->analog_gpio);
+ return em28xx_gpio_set(dev, INPUT(dev->ctl_input)->gpio);
}
EXPORT_SYMBOL_GPL(em28xx_set_mode);
diff -r 831988d5b7b2 -r 86a23dda5b87 linux/drivers/media/video/em28xx/em28xx.h
--- a/linux/drivers/media/video/em28xx/em28xx.h Thu Nov 27 08:46:59 2008 -0200
+++ b/linux/drivers/media/video/em28xx/em28xx.h Thu Nov 27 10:00:00 2008 -0200
@@ -440,9 +440,6 @@ struct em28xx {
/* Some older em28xx chips needs a waiting time after writing */
unsigned int wait_after_write;
- /* GPIO sequences for analog and digital mode */
- struct em28xx_reg_seq *analog_gpio, *digital_gpio;
-
/* GPIO sequences for tuner callbacks */
struct em28xx_reg_seq *tuner_gpio;
---
Patch is available at:
http://linuxtv.org/hg/v4l-dvb/rev/86a23dda5b873ff3e684db72157f58eb3df9a37d
_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits