Re: [PATCH 2/2] TVP514x V4L int device driver support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 21 November 2008, hvaibhav@xxxxxx wrote:
> +static const struct i2c_device_id tvp514x_id[] = {
> +       {MODULE_NAME, 0},
> +       {},
> +};

Don't do that.  Instead:

	{ "tvp5146", 0 },
	{ "tvp5147", 0 },

and so on.  Maybe pass a flag there to help determine which
chip reset/init message sequence to use.  (Which, hmm, I did
not see in this code, although the data sheets are clear
that the '46 needs 12 writes and the '47 needs 18 ...)  Or
tell if the extra '46 registers are available, etc.


> +late_initcall(tvp514x_init);

Why is this "late" instead of normal module_init()?
It's unusual for I2C...

- Dave
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux