stefan.rin...@arcor.de wrote:
> From: Stefan Ringel <stefan.rin...@arcor.de>

This patch depends on the previous one, so I can't apply it as-is.

Ah, please provide a better description for your patches. None of the patches 
you
submitted so far contains a single line but the subject. please read 
README.patches.
> 
> Signed-off-by: Stefan Ringel <stefan.rin...@arcor.de>
> ---
>  drivers/staging/tm6000/tm6000-i2c.c |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/staging/tm6000/tm6000-i2c.c 
> b/drivers/staging/tm6000/tm6000-i2c.c
> index b563129..6ae02b8 100644
> --- a/drivers/staging/tm6000/tm6000-i2c.c
> +++ b/drivers/staging/tm6000/tm6000-i2c.c
> @@ -54,9 +54,20 @@ int tm6000_i2c_send_regs(struct tm6000_core *dev, unsigned 
> char addr, __u8 reg,
>  int tm6000_i2c_recv_regs(struct tm6000_core *dev, unsigned char addr, __u8 
> reg, char *buf, int len)
>  {
>       int rc;
> +     u8 b[2];
>  
> +     if ((dev->caps.has_zl10353) && (dev->demod_addr << 1 == addr) && (reg % 
> 2 == 0)) {
> +             reg -= 1;
> +             len += 1;
> +
> +             rc = tm6000_read_write_usb(dev, USB_DIR_IN | USB_VENDOR_TYPE | 
> USB_RECIP_DEVICE,
> +                     REQ_16_SET_GET_I2C_WR1_RDN, addr | reg << 8, 0, b, len);
> +
> +             *buf = b[1];
> +     } else {
>               rc = tm6000_read_write_usb(dev, USB_DIR_IN | USB_VENDOR_TYPE | 
> USB_RECIP_DEVICE,
>                       REQ_16_SET_GET_I2C_WR1_RDN, addr | reg << 8, 0, buf, 
> len);
> +     }
>  
>       return rc;
>  }


-- 

Cheers,
Mauro
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to