1. 19 7月, 2007 2 次提交
    • T
      V4L/DVB (5777): Dvb-pll digitv dvb-usb: Eliminate last user of dvb_pll_configure · 4ce15678
      Trent Piepho 提交于
      The last user of dvb_pll_configure was the dvb-usb function
      dvb_usb_tuner_calc_regs(), which was nothing more than a wrapper around
      dvb_pll_configure().  It's just a copy of the functionality provided by
      the tuner_ops calc_regs method, and can be deleted.
      
      There were two users of dvb_usb_tuner_calc_regs().
      One was dvb_usb_tuner_set_params_i2c(), which is converted to use
      fe->ops.tuner_ops.calc_regs().
      
      The other was the digitv driver.  This driver can use one of two demods,
      mt352 or nxt6000.  
      
      For the mt352, the driver would set tuner_ops.calc_regs to 
      dvb_usb_tuner_calc_regs().  
      
      We can just attach dvb_pll and use the tuner_ops.calc_regs() provided by 
      that module. For the nxt600, the driver would set tuner_ops.set_params 
      to digitv_nxt6000_tuner_set_params.  
      
      That function would in turn use dvb_usb_tuner_calc_regs().
      
      We convert it to use tuner_ops.calc_regs() instead, and use 
      dvb_pll_attach.
      
      The digitv_tuner_attach() needs to know which frontend was attached by 
      digitv_frontend_attach(), since the nxt6000 needs tuner_ops.set_params() 
      to be overridden with digitv_nxt6000_tuner_set_params().
      
      So, to do this a digitv_state that says which frontend was used is added 
      to the dvb_usb_device private state field.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      4ce15678
    • M
      V4L/DVB (5632): Dvb-pll: pass dvb_frontend_parameters to generic set() function · 77d67504
      Michael Krufky 提交于
      Rename dvb_pll_desc.setbw() to set(), and accept struct dvb_frontend_parameters
      instead of passing both freq and bandwidth, so that this may be used as a
      generic function.
      
      In order to do this, dvb_pll_configure must also be altered in the same manner,
      to take struct dvb_frontend_parameters instead of freq and bandwidth.
      Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      77d67504
  2. 02 5月, 2007 1 次提交
    • D
      i2c: Shrink struct i2c_client · 2096b956
      David Brownell 提交于
      This shrinks the size of "struct i2c_client" by 40 bytes:
      
       - Substantially shrinks the string used to identify the chip type
       - The "flags" don't need to be so big
       - Removes some internal padding
      
      It also adds kerneldoc for that struct, explaining how "name" is really a
      chip type identifier; it's otherwise potentially confusing.
      
      Because the I2C_NAME_SIZE symbol was abused for both i2c_client.name
      and for i2c_adapter.name, this needed to affect i2c_adapter too.  The
      adapters which used that symbol now use the more-obviously-correct
      idiom of taking the size of that field.
      
      JD: Shorten i2c_adapter.name from 50 to 48 bytes while we're here, to
      avoid wasting space in padding.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      2096b956
  3. 14 2月, 2007 1 次提交
    • J
      i2c: Declare more i2c_adapter parent devices · 12a917f6
      Jean Delvare 提交于
      Declare the parent device of i2c_adapter devices each time we can
      easily do so. It makes the i2c_adapter appear at the right place in
      the device tree, rather than as a platform device.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Cc: David Brownell <dbrownell@users.sourceforge.net>
      Cc: Len Brown <len.brown@intel.com>
      Cc: Jordan Crouse <jordan.crouse@amd.com>
      Cc: Jody McIntyre <scjody@modernduck.com>
      Cc: Stefan Richter <stefanr@s5r6.in-berlin.de>
      Cc: v4l-dvb-maintainer@linuxtv.org
      Cc: Petr Vandrovec <vandrove@vc.cvut.cz>
      12a917f6
  4. 04 10月, 2006 1 次提交
  5. 25 6月, 2006 3 次提交
  6. 10 1月, 2006 1 次提交
  7. 06 9月, 2005 1 次提交
    • J
      [PATCH] I2C: Kill i2c_algorithm.id (6/7) · 1684a984
      Jean Delvare 提交于
      In theory, there should be no more users of I2C_ALGO_* at this point.
      However, it happens that several drivers were using I2C_ALGO_* for
      adapter ids, so we need to correct these before we can get rid of all
      the I2C_ALGO_* definitions.
      
      Note that this also fixes a bug in media/video/tvaudio.c:
      
      	/* don't attach on saa7146 based cards,
      	   because dedicated drivers are used */
      	if ((adap->id & I2C_ALGO_SAA7146))
      		return 0;
      
      This test was plain broken, as it would succeed for many more adapters
      than just the saa7146: any those id would share at least one bit with
      the saa7146 id. We are really lucky that the few other adapters we want
      this driver to work with did not fulfill that condition.
      Signed-off-by: NJean Delvare <khali@linux-fr.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1684a984
  8. 24 6月, 2005 1 次提交