From patchwork Sun Nov 7 15:54:39 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 306952 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oA7FsleW024951 for ; Sun, 7 Nov 2010 15:54:47 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753416Ab0KGPyq (ORCPT ); Sun, 7 Nov 2010 10:54:46 -0500 Received: from zone0.gcu-squad.org ([212.85.147.21]:25469 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753309Ab0KGPyq (ORCPT ); Sun, 7 Nov 2010 10:54:46 -0500 Received: from jdelvare.pck.nerim.net ([62.212.121.182] helo=endymion.delvare) by services.gcu-squad.org (GCU Mailer Daemon) with esmtpsa id 1PF7g4-0006bk-Nj (TLSv1:AES128-SHA:128) (envelope-from ) ; Sun, 07 Nov 2010 17:01:08 +0100 Date: Sun, 7 Nov 2010 16:54:39 +0100 From: Jean Delvare To: LMML Cc: Mauro Carvalho Chehab , Michel Ludwig , Stefan Ringel Subject: [PATCH 2/2] TM6000: Drop unused macro Message-ID: <20101107165439.544bf200@endymion.delvare> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sun, 07 Nov 2010 15:54:47 +0000 (UTC) --- linux-2.6.36-rc7.orig/drivers/staging/tm6000/tm6000-i2c.c 2010-10-13 10:30:09.000000000 +0200 +++ linux-2.6.36-rc7/drivers/staging/tm6000/tm6000-i2c.c 2010-10-13 10:36:15.000000000 +0200 @@ -301,18 +301,6 @@ static u32 functionality(struct i2c_adap return I2C_FUNC_SMBUS_EMUL; } -#define mass_write(addr, reg, data...) \ - { static const u8 _val[] = data; \ - rc = tm6000_read_write_usb(dev, USB_DIR_OUT | USB_TYPE_VENDOR, \ - REQ_16_SET_GET_I2C_WR1_RDN, (reg<<8)+addr, 0x00, (u8 *) _val, \ - ARRAY_SIZE(_val)); \ - if (rc < 0) { \ - printk(KERN_ERR "Error on line %d: %d\n", __LINE__, rc); \ - return rc; \ - } \ - msleep(10); \ - } - static const struct i2c_algorithm tm6000_algo = { .master_xfer = tm6000_i2c_xfer, .functionality = functionality,