au0828-i2c.c (818b930bc15077fc00ff16bb22c5df1857f05afa) au0828-i2c.c (8a4e786660f512b029b56d94d1b8f0201e67aab3)
1/*
2 * Driver for the Auvitek AU0828 USB bridge
3 *
4 * Copyright (c) 2008 Steven Toth <stoth@linuxtv.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 364 unchanged lines hidden (view full) ---

373
374 dev->i2c_adap.dev.parent = &dev->usbdev->dev;
375
376 strlcpy(dev->i2c_adap.name, DRIVER_NAME,
377 sizeof(dev->i2c_adap.name));
378
379 dev->i2c_adap.algo = &dev->i2c_algo;
380 dev->i2c_adap.algo_data = dev;
1/*
2 * Driver for the Auvitek AU0828 USB bridge
3 *
4 * Copyright (c) 2008 Steven Toth <stoth@linuxtv.org>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

--- 364 unchanged lines hidden (view full) ---

373
374 dev->i2c_adap.dev.parent = &dev->usbdev->dev;
375
376 strlcpy(dev->i2c_adap.name, DRIVER_NAME,
377 sizeof(dev->i2c_adap.name));
378
379 dev->i2c_adap.algo = &dev->i2c_algo;
380 dev->i2c_adap.algo_data = dev;
381#ifdef CONFIG_VIDEO_AU0828_V4L2
381 i2c_set_adapdata(&dev->i2c_adap, &dev->v4l2_dev);
382 i2c_set_adapdata(&dev->i2c_adap, &dev->v4l2_dev);
383#else
384 i2c_set_adapdata(&dev->i2c_adap, dev);
385#endif
382 i2c_add_adapter(&dev->i2c_adap);
383
384 dev->i2c_client.adapter = &dev->i2c_adap;
385
386 if (0 == dev->i2c_rc) {
387 printk(KERN_INFO "%s: i2c bus registered\n", DRIVER_NAME);
388 if (i2c_scan)
389 do_i2c_scan(DRIVER_NAME, &dev->i2c_client);

--- 12 unchanged lines hidden ---
386 i2c_add_adapter(&dev->i2c_adap);
387
388 dev->i2c_client.adapter = &dev->i2c_adap;
389
390 if (0 == dev->i2c_rc) {
391 printk(KERN_INFO "%s: i2c bus registered\n", DRIVER_NAME);
392 if (i2c_scan)
393 do_i2c_scan(DRIVER_NAME, &dev->i2c_client);

--- 12 unchanged lines hidden ---