Re: [v4l-dvb-maintainer] 2.6.25 regression: VIDEO_DEV=y/m, I2C=n compile error

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mauro Carvalho Chehab
Date: Tuesday, January 29, 2008 - 11:42 am

Hi Trent,


True, but, with the exception of v4l2_chip_match_host(), all the others have
struct i2c_client as an argument. I can't see any valid usage where someone would
fill this struct when i2c is not supported.

---

I'm committing right now a patch that should properly fix the regression. I've
checked it with -git tree and seems to work properly to me.

The Kconfig changes become this way:

diff -r ea8b678dd436 -r 3f704aa9d92e linux/drivers/media/Kconfig
--- a/linux/drivers/media/Kconfig       Mon Jan 28 22:11:19 2008 +0000
+++ b/linux/drivers/media/Kconfig       Tue Jan 29 16:32:35 2008 -0200
@@ -24,6 +24,11 @@ config VIDEO_DEV

          To compile this driver as a module, choose M here: the
          module will be called videodev.
+
+config VIDEO_V4L2_COMMON
+       tristate
+       depends on (I2C || I2C=n) && VIDEO_DEV
+       default (I2C || I2C=n) && VIDEO_DEV

The "depends on" clause is equal to default. Probably, it can be safely
removed, but this way seems clearer to my eyes.

Based on my tests, it seems that "depends on" only works fine for values that
are prompted. If the value is not prompted, it just uses whatever declared on
"default".

I'll push the complete changeset to -hg and my -git tree (at devel branch).

Cheers,
Mauro.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.25 regression: VIDEO_DEV=y/m, I2C=n compile error, Adrian Bunk, (Sun Jan 27, 11:52 am)
Re: 2.6.25 regression: VIDEO_DEV=y/m, I2C=n compile error, Mauro Carvalho Chehab, (Sun Jan 27, 5:33 pm)
Re: [v4l-dvb-maintainer] 2.6.25 regression: VIDEO_DEV=y/m, ..., Mauro Carvalho Chehab, (Mon Jan 28, 4:49 am)
Re: [v4l-dvb-maintainer] 2.6.25 regression: VIDEO_DEV=y/m, ..., Mauro Carvalho Chehab, (Mon Jan 28, 5:22 am)
Re: [v4l-dvb-maintainer] 2.6.25 regression: VIDEO_DEV=y/m, ..., Mauro Carvalho Chehab, (Mon Jan 28, 5:25 am)
Re: [v4l-dvb-maintainer] 2.6.25 regression: VIDEO_DEV=y/m, ..., Mauro Carvalho Chehab, (Tue Jan 29, 9:38 am)
Re: [v4l-dvb-maintainer] 2.6.25 regression: VIDEO_DEV=y/m, ..., Mauro Carvalho Chehab, (Tue Jan 29, 11:42 am)