From patchwork Fri Jul 8 22:52:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 957672 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p68MrJBb025771 for ; Fri, 8 Jul 2011 22:53:20 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752429Ab1GHWxS (ORCPT ); Fri, 8 Jul 2011 18:53:18 -0400 Received: from na3sys009aog117.obsmtp.com ([74.125.149.242]:60114 "EHLO na3sys009aog117.obsmtp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752391Ab1GHWxS (ORCPT ); Fri, 8 Jul 2011 18:53:18 -0400 Received: from mail-bw0-f50.google.com ([209.85.214.50]) (using TLSv1) by na3sys009aob117.postini.com ([74.125.148.12]) with SMTP ID DSNKTheKXT7FwfuH4YAw7m5oJO0eTK3ymr5K@postini.com; Fri, 08 Jul 2011 15:53:18 PDT Received: by bwb11 with SMTP id 11so2123355bwb.9 for ; Fri, 08 Jul 2011 15:53:15 -0700 (PDT) Received: by 10.204.42.18 with SMTP id q18mr1696494bke.46.1310165595758; Fri, 08 Jul 2011 15:53:15 -0700 (PDT) Received: from localhost (cs181221225.pp.htv.fi [82.181.221.225]) by mx.google.com with ESMTPS id r24sm383023bkr.26.2011.07.08.15.53.13 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 08 Jul 2011 15:53:14 -0700 (PDT) From: Felipe Balbi To: Tony Lindgren Cc: Linux OMAP Mailing List , Felipe Balbi Subject: [PATCH 10/11] cbus: tahvo: drop some unneded defines Date: Sat, 9 Jul 2011 01:52:38 +0300 Message-Id: <1310165559-31037-11-git-send-email-balbi@ti.com> X-Mailer: git-send-email 1.7.6 In-Reply-To: <1310165559-31037-1-git-send-email-balbi@ti.com> References: <1310165559-31037-1-git-send-email-balbi@ti.com> Organization: Texas Instruments\n Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Fri, 08 Jul 2011 22:53:20 +0000 (UTC) no functional changes. Signed-off-by: Felipe Balbi --- drivers/cbus/tahvo.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/cbus/tahvo.c b/drivers/cbus/tahvo.c index 04b8203..a538f13 100644 --- a/drivers/cbus/tahvo.c +++ b/drivers/cbus/tahvo.c @@ -33,14 +33,12 @@ #include #include #include +#include #include #include "cbus.h" #include "tahvo.h" -#define TAHVO_ID 0x02 -#define PFX "tahvo: " - struct tahvo { /* device lock */ struct mutex mutex; @@ -73,7 +71,7 @@ EXPORT_SYMBOL(tahvo_get_status); */ static int __tahvo_read_reg(struct tahvo *tahvo, unsigned reg) { - return cbus_read_reg(tahvo->dev, TAHVO_ID, reg); + return cbus_read_reg(tahvo->dev, CBUS_TAHVO_DEVICE_ID, reg); } /** @@ -84,7 +82,7 @@ static int __tahvo_read_reg(struct tahvo *tahvo, unsigned reg) */ static void __tahvo_write_reg(struct tahvo *tahvo, unsigned reg, u16 val) { - cbus_write_reg(tahvo->dev, TAHVO_ID, reg, val); + cbus_write_reg(tahvo->dev, CBUS_TAHVO_DEVICE_ID, reg, val); } /**